- Devise
- Mailtrap (dev)
- Sendgrid (prod)
- PostgreSQL
- Redis
- Sidekiq
- RSpec
- CircleCI
- Bootstrap 4
bundle install
bundle exec rake db:create && bundle exe rake db:migrate
Use Figaro to generate a file for configuration values and add it to .gitignore :
bundle exec figaro install
Get mailtrap credentials from the chosen inbox (https://mailtrap.io/inboxes).
Add them to development environment variables in config/application.yml
:
development:
MAILTRAP_USERNAME: "424242424242424242"
MAILTRAP_PASSWORD: "424242424242424242"
redis-server
sidekiq -q default -q mailers
rails s
Create a new pipeline linked to the GitHub repo. Add these addons for each app:
- Heroku Postgres
- Heroku Redis
- Sendgrid
Setup autodeploy in staging.
Add the HOSTNAME
environment variable in staging and production and set its value to the app hostname, e.g. durev-template.herokuapp.com
.
(It is used in the mailer config, in order to get the correct domain for the emails links URL)
Add the project to CircleCI.
Manually deploy from staging to production 🚀