Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku automatically changing RAILS_ENV and RACK_ENV variables to "production" on every deploy

Tags:

heroku

Every time I push a new version to my staging heroku app, the RACK_ENV and RAILS_ENV variables are changed to "production", instead of "staging" which is the value I manually assigned. This started happening a couple of hours ago. A line like this is logged on the activity page on the heroku site on every deploy: v741 [email protected]: Add RAILS_ENV, RACK_ENV, PATH, LANG, GEM_PATH config 6 minutes ago

I should talk to heroku support, but it seems that now the only place where questions can be asked is here, they remove the site support...

like image 481
Sonny Avatar asked Oct 03 '12 04:10

Sonny


1 Answers

Same here. Fortunately, it does not happen after a rollback.

Fortunately a deploy on production does not set the variables to staging !

EDIT:

Heroku answer on a ticket: Hi, looks like a bug on our end. I'm notifying our ruby team

EDIT 2:

They said the bug was fixed yesterday, and yes, it was. But… the bug has just happened again right now……

like image 83
ronnieonrails Avatar answered Sep 24 '22 17:09

ronnieonrails