Last active
June 7, 2018 18:40
-
-
Save brightredchilli/658d26e379ef8e05ff8c63e72d0fadf7 to your computer and use it in GitHub Desktop.
Revisions
-
brightredchilli revised this gist
Jun 7, 2018 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,3 @@ # 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 -
brightredchilli revised this gist
Jun 7, 2018 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1,2 @@ # This strips the spaces as well. Could not combine the two sed expressions into 1. I think :alnum: and :space: is the problem. Look at -E heroku config --remote staging | grep -v "Config Vars" | sed 's/\([[:alnum:]_-]*\):/\1=/' | sed -E 's/[[:space:]]+//' -
brightredchilli created this gist
Apr 27, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ heroku config | grep -v "Config Vars" | sed 's/\([[:alnum:]_-]*\):/\1=/'