Skip to content

Instantly share code, notes, and snippets.

@leogopal
Created March 25, 2019 08:15
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 leogopal/e1bb34273029878fc9b3d1513a805201 to your computer and use it in GitHub Desktop.
Save leogopal/e1bb34273029878fc9b3d1513a805201 to your computer and use it in GitHub Desktop.
Script the setting of Heroku Variables
heroku config | sed 's/: */=/g; /^=/d' >> .env
heroku config:set $(cat .env | sed '/^$/d; /#[[:print:]]*$/d')
heroku config:set LOGGER_LEVEL=debug ENV=production CRYPTO_SECRET=guesswhat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment