- use double quotes
"
whenenver possible
- use
rake secret
to generate a new secret key for your app - add
APP_SECRET_KEY_BASE=XXXXXXXXX
to your.env
file - add the new environment variable to replace the original secret key
# config/initializers/secret_token.rb
DraftServer::Application.config.secret_key_base = ENV["APP_SECRET_KEY_BASE"]```
- add the new secret key to your heroku staging and production environments
heroku config:set APP_SECRET_KEY_BASE=XXXXXXXXX --remote staging
heroku config:set APP_SECRET_KEY_BASE=XXXXXXXXX --remote production
- draft
- pick
- roster
- slot
- piece
- user
- establish designations for your staging app
heroku config:set RACK_ENV=staging RAILS_ENV=staging --remote staging
- set up a staging.rb file in your environments directory
git cp config/environments/production.rb config/environments/staging.rb
- more info about (heroku environments)[https://devcenter.heroku.com/articles/multiple-environments]