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.rb
as a very simple database-backed model - Added
app/services/twilio_service.rb
to send text messages - Added
app/workers/message_worker.rb
as a Sidekiq worker - Added
db/migrate/...create_messages.rb
as a migration to create themessages
table - Added
Procfile
for use with Heroku and other similar tools. - Added
Procfile.dev
to start Puma, Sidekiq, and Redis together (heroku local -f Procfile.dev
then useCtrl-C
twice 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.