It is my understanding that the following is “The Rails Way” for setting up a staging environment.
$ cp config/environments/production.rb config/environments/staging.rb $ atom config/environments/staging.rb # make whatever changes you need
Any sensitive data or data you may want to change without having to push a new version of the app should be placed in environment variables.
However, Heroku is recommending the following:
Your “staging” app or any other custom environments should be run with
RAILS_ENV=productionto minimize differences in behavior.