Setting Environment Variables in Heroku

Here's how you can set environment variables on remote machines in heroku.
I used to set these variables inside python scripts to ensure they work, as I didn't know how to do this earlier.




heroku config:set ENV_VAR=VALUE 
heroku config:set ENV_VAR=VALUE --app <app name>
heroku config:set ENV_VAR=VALUE --remote <remote name>
I am posting this so that I can use this whenever I need it.

Comments

Popular Posts