A.JO
A.JO

Reputation: 235

How to set environment variable with heroku?

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

Upvotes: 2

Views: 4820

Answers (1)

Benito Serna
Benito Serna

Reputation: 1381

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

Upvotes: 2

Related Questions