Set up a Rails site on Heroku
1) Make sure you have a root page created and routed.
2) Edit config/initializers/devise.rb
and uncomment line #11, config.secret_key
3) Install dotenv and create .env (if you haven't already) - Instructions
4) Duplicate config/environments/production.rb
and call it staging.rb
5) Commit and push to github
6) Create 2 the apps in Heroku (using command line)
(replace appname with the name of my app)
7) Deploy code from GitHub to both Heroku environments (this is the routine for pushing updates)
8) Migrate database on both Heroku environments
9) Make the staging Heroku environment the default for all CLI commands (optional but recommended)
10) Open Heroku Postgres databases in my Mac app, TablePlus
Open heroku.com > this app > Resources > Under 'Add-ons' click the Postgress Database > Settings > Database Credentials > View Credentials
Last updated