admin管理员组文章数量:1388919
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:
- Go to Settings
- Press Reveal Config Vars
- Add o Modify some config vars there
- Press Hide Config Vars
- Press Reveal Config Vars
- 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:
- Go to Settings
- Press Reveal Config Vars
- Add o Modify some config vars there
- Press Hide Config Vars
- Press Reveal Config Vars
- 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 badges1 Answer
Reset to default 0Finally, 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.
本文标签: variablesHow to use config vars on heroku when using StackcontainerStack Overflow
版权声明:本文标题:variables - How to use config vars on heroku when using Stack=container - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744609533a2615567.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论