grunt-heroku-env
Heroku stores your app environment variables in individual files in ENV_DIR
during the slug compilation step (replacing the heroku labs user-env-compile feature). Run this task to pull the heroku environment variables into process.env
.
Getting Started
Install this grunt plugin with: npm install grunt-heroku-env
Then add this line to your project's Gruntfile.js
gruntfile:
grunt;
Usage
When used with the heroku grunt buildpack, you can use the task to expose environment variables to your heroku task (the default task that is run by the buildpack):
grunt;
If using the default buildpack, add an npm postinstall script to your package.json
like so:
License
MIT
Author
Patrick Williams