Configuration - acolorbright/handbook GitHub Wiki

Project configuration should be done via environment variables. This is especially important for things like API keys, passwords, etc. as these should never be stored in Git.

On Heroku, this means setting config variables, e.g. using the CLI: heroku config:set VAR_NAME1=VALUE2 VAR_NAME2=VALUE2.

Locally, .env files should be used.

Python apps can read these variables via os.getenv('VAR_NAME') / using python-dotenv, and Node apps via process.env.VAR_NAME / using dotenv.