How to set environment variable with heroku?

淺唱寂寞╮ 提交于 2020-06-23 11:06:22

问题


I'm trying to set an environment variable with this command line:

heroku config:set ENV=PRODUCTION

But I have this error :

! Missing required flag:

! -a, --app APP app to run command against

! See more help with --help

my app name is disquairedjangoaj96


回答1:


I think what you need now is to tell heroku in which app you want to set the env variable.

heroku config:set ENV=PRODUCTION --app disquairedjangoaj96

Maybe this guide can help you https://devcenter.heroku.com/articles/using-the-cli#app-commands



来源:https://stackoverflow.com/questions/49758575/how-to-set-environment-variable-with-heroku

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