Skip to content

Instantly share code, notes, and snippets.

@sasha42
Created March 14, 2019 16:41
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 sasha42/da7e388276c2be10810d025f937a815e to your computer and use it in GitHub Desktop.
Save sasha42/da7e388276c2be10810d025f937a815e to your computer and use it in GitHub Desktop.
heroku copy config to env
# first install https://github.com/xavdid/heroku-config
heroku plugins:install heroku-config
# then add the following to your ~/.bashrc or ~/.zshrc
alias hc="heroku config:pull && mv .env env.sh && chmod +x env.sh && . ./env.sh"
# next you can just run hc to copy over your config
hc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment