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

橙三吉。 提交于 2019-12-30 08:33:09

问题


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 app_owner@gmail.com: 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...


回答1:


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……



来源:https://stackoverflow.com/questions/12702140/heroku-automatically-changing-rails-env-and-rack-env-variables-to-production-o

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!