Skip to content

Instantly share code, notes, and snippets.

@jrichardsz
Created November 26, 2020 16:37
Show Gist options
  • Save jrichardsz/585ec2dd5fbf663fba965fbf098ad867 to your computer and use it in GitHub Desktop.
Save jrichardsz/585ec2dd5fbf663fba965fbf098ad867 to your computer and use it in GitHub Desktop.
Heroku: Copying environment variables from an existing app to another
1. Export existing app’s variables to config.txt
heroku config -s -a existing-heroku-app > config.txt
2. Review and push to another app
cat config.txt | tr '\n' ' ' | xargs heroku config:set -a new-heroku-app
@hugohernandezfcc
Copy link

hugohernandezfcc commented May 2, 2022

Thank you so much. :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment