This is a small app that can be used to try out different hosting services.
This app started as a Rails 6.1.4 with rails new canary -d postgresql and then the following changes were made:
- Added gem 'sidekiq'
- Added gem 'twilio-ruby'
- Added gem 'dotfile-rails'
- Added
app/models/message.rbas a very simple database-backed model - Added
app/services/twilio_service.rbto send text messages - Added
app/workers/message_worker.rbas a Sidekiq worker - Added
db/migrate/...create_messages.rbas a migration to create themessagestable - Added
Procfilefor use with Heroku and other similar tools. - Added
Procfile.devto start Puma, Sidekiq, and Redis together (heroku local -f Procfile.devthen useCtrl-Ctwice to quit)
You will need Redis and Postgres installed and running as local services.
No seed data is necessary to run the app, but you must create a file named .env and populate
it with values. See Jeff for details.
Then:
$ rails db:create db:migrate
$ heroku local -f Procfile.dev or you can start each service manually if you prefer
then browse to the home page.