Skip to content

Instantly share code, notes, and snippets.

@sasha42
Created March 14, 2019 16:41
Show Gist options
  • 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