Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku using production configuration instead of staging configuration

I'm running two apps on Heroku, one being myapp-production and the other one being myapp-staging.

For some reason however, the staging app uses the production environment configuration rather than the staging configuration, which I have defined in staging.rb.

The way I set up the staging app was by running

heroku create --stack cedar --remote staging

and afterwards

heroku config:add RACK_ENV=staging --app myapp-staging

Yet myapp-staging is still using the production configuration. Any ideas why and how to address that?

like image 652
simonrohrbach Avatar asked May 06 '12 19:05

simonrohrbach


1 Answers

It's important to add RAILS_ENV=staging too

heroku config:add RAILS_ENV=staging --app myapp-staging
like image 54
John Beynon Avatar answered Oct 03 '22 05:10

John Beynon