Last active
June 7, 2018 18:40
-
-
Save brightredchilli/658d26e379ef8e05ff8c63e72d0fadf7 to your computer and use it in GitHub Desktop.
Heroku config into env var format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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