Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Heroku config into env var format
# Use awk to remove spaces. strips the trailing ":" from the first column
# adds quotes around the second.
heroku config --remote staging | grep -v "Config Vars" | awk '{print substr($1, 1, length($1)-1)"=""\""$2"\""}' > .env.developmen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment