Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaellouieloria/7aec2e01317414509b0d473eab08d539 to your computer and use it in GitHub Desktop.
Save michaellouieloria/7aec2e01317414509b0d473eab08d539 to your computer and use it in GitHub Desktop.
Heroku: Copying environment variables from an existing app to another
heroku config -s -a existing-heroku-app > config.txt
cat config.txt | tr '\n' ' ' | xargs heroku config:set -a new-heroku-app
or
heroku config -s -a existing-heroku-app | tr '\n' ' ' | xargs heroku config:set -a new-heroku-app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment