1.0.7 • Published 7 years ago
heroku_env_merge v1.0.7
heroku_env_merge
- Requirements
- heroku cli application must be installed.
wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh
- heroku cli must have been succesfully logged into prior to running this application.
heroku login
- Environment variable HEROKU_APP_NAME must be defined, as this is the application that will be updated.
export HEROKU_APP_NAME=MY_APP_NAME
How this works:
When the application is ran, any environment variable that matches
- "HEROKUENV" will be pulled into an array.
- "HEROKUENV" will be stripped from each found environment variable, leaving remaining text as KEY
- Each environment variable found will be first unset at configure HEROKU_APP_NAME application
- Each environment variable found will be then set with designated values within HEROKUAPP_NAME application Sets environment variables within Heroku application for any environment variable locally matching HEROKU