Created
November 26, 2014 18:04
-
-
Save unbracketed/1a33030d34949f7e3143 to your computer and use it in GitHub Desktop.
Heroku copy config
This file contains 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
#!/bin/bash | |
set -e | |
sourceApp="$1" | |
targetApp="$2" | |
while read key value; do | |
key=${key%%:} | |
echo "Setting $key=$value" | |
heroku config:set "$key=$value" --app "$targetApp" | |
done < <(heroku config --app "$sourceApp" | sed -e '1d') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment