Skip to content

Commit

Permalink
Merge pull request nightscout#21 from tzachi-dar/vps-1
Browse files Browse the repository at this point in the history
Replace \n with a new line, as heroku program does not export it well.
  • Loading branch information
jamorham committed Nov 11, 2022
2 parents 79e06f8 + a976e3a commit 6e1ef95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GetHerokuVars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ APP_NAME=$(heroku apps -A --json | jq '.[] | .["name"]' | sed -e 's/\"//g')
echo $APP_NAME
heroku config -a $APP_NAME -s| grep -v "STORAGE_URI\|MONGO_CONNECTION\|MONGO$\|MONGOLAB_URI\|MONGODB_URI" | sed -e 's/^/export /' > heroku_vars.txt

# the command below replaces \n with a new line and that is why it is using two lines
sed -i 's/\\n/\
/g' heroku_vars.txt

echo "new vars are in the file heroku_vars.txt."
echo "Please look at it, and if all is ok, try copying it to /etc/nsconfig"

0 comments on commit 6e1ef95

Please sign in to comment.