最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

variables - How to use config vars on heroku when using Stack=container - Stack Overflow

programmeradmin3浏览0评论

When using stack container deployment (config set stack), you would need changing config vars on the dashboard at heroku. But something bad happen. Step by step:

  1. Go to Settings
  2. Press Reveal Config Vars
  3. Add o Modify some config vars there
  4. Press Hide Config Vars
  5. Press Reveal Config Vars
  6. The config vars you earlier modified or added is not there with the last modified value, there something unexpected behaviour. Your code doesn't aware of any changes on the config var. So yo need to delete app, then initialize a new app, and then rebuild all the code including config vars with the desired values.

I want to change env vars at Dashboard or trough config set without deleting and rebuilding app.

When using stack container deployment (config set stack), you would need changing config vars on the dashboard at heroku. But something bad happen. Step by step:

  1. Go to Settings
  2. Press Reveal Config Vars
  3. Add o Modify some config vars there
  4. Press Hide Config Vars
  5. Press Reveal Config Vars
  6. The config vars you earlier modified or added is not there with the last modified value, there something unexpected behaviour. Your code doesn't aware of any changes on the config var. So yo need to delete app, then initialize a new app, and then rebuild all the code including config vars with the desired values.

I want to change env vars at Dashboard or trough config set without deleting and rebuilding app.

Share Improve this question asked Mar 15 at 16:08 alectricoalectrico 197 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Finally, after testing a lot, I found that by changing Deploy to Heroku Git and then changing Settings. Automatically Deploy move to Github Connected, preserving the new values for env var you modified.

发布评论

评论列表(0)

  1. 暂无评论