2

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 Answer 1

2

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

2
  • when I do so, I get this error: "! disquairedjangoaj96 is invalid. Must be in the format FOO=bar."
    – A.JO
    Commented Apr 10, 2018 at 16:28
  • Did you used the double "--"?... I received that same error when I used only "-app" instead of "--app" Commented Apr 10, 2018 at 16:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.