- Install the Heroku Toolbelt.
- On the command line, set your app's buildpack URL to target this repository:
heroku config:set BUILDPACK_URL=https://github.com/krry/heroku-buildpack-nodejs-gulp-bower.git
- Set the
NODE_ENV
to an environment name of your choice:
heroku config:set NODE_ENV={{env}} // I like to keep my `env` names short, e.g., "prod", "stage", "test", "int", "dev"
- Allow the Heroku instance to install
devDependencies
stored in yourpackage.json
as heroku recommends.
heroku config:set NPM_CONFIG_PRODUCTION=false
- For each environment name, add a Gulp task named
heroku:{{env}}
that builds the app for that environment.
var gulp = require('gulp');
gulp.tasks('heroku:prod', [default]);
- Thanks to artmees for getting things environment-sensitive.
- Forked from heroku-buildpack-nodejs.
- Incorporated bower check and install from heroku-buildpack-nodejs-gulp-bower
- Heavily based on heroku-buildpack-nodejs-grunt.