问题
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