Skip to content

Instantly share code, notes, and snippets.

@eladg
Last active August 29, 2015 14:14
Show Gist options
  • Save eladg/7a4765a043d847a846da to your computer and use it in GitHub Desktop.
Save eladg/7a4765a043d847a846da to your computer and use it in GitHub Desktop.
sync .env to heroku config
#!/bin/bash
for line in `cat .env` ;
do
IFS='='
read -a array <<< "$line"
if [[ ${array[0]} != "#"* ]] ;
then
echo "heroku config:set ${array[0]}=${array[1]}"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment