Skip to content

Instantly share code, notes, and snippets.

@gabrieljoelc
Last active June 20, 2020 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrieljoelc/24d7ae7d6609f7c8ef437c23bcd3e05f to your computer and use it in GitHub Desktop.
Save gabrieljoelc/24d7ae7d6609f7c8ef437c23bcd3e05f to your computer and use it in GitHub Desktop.
Set Heroku config from .env file
# assuming .env file is in working directory and looks like (must have no whitspace expect for newlines or within quotes)
# REACT_APP_API_URL=https://myapi.io
# REACT_APP_AUTH_TOKEN=123
# see https://stackoverflow.com/a/4229346/34315
for line in `cat .env`; do echo "$line"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment