Skip to content

Instantly share code, notes, and snippets.

@unbracketed
Created November 26, 2014 18:04
Show Gist options
  • Save unbracketed/1a33030d34949f7e3143 to your computer and use it in GitHub Desktop.
Save unbracketed/1a33030d34949f7e3143 to your computer and use it in GitHub Desktop.
Heroku copy config
#!/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