in favor of the official solution: https://devcenter.heroku.com/changelog-items/595
Here's an overview of what this buildpack does:
npmthat comes bundled with
PATHso they can be executed with heroku run.
node_modulesis checked into version control.
npm installto ensure npm script hooks are executed.
npm pruneafter restoring cached modules to ensure cleanup of unused dependencies.
For more information about using io.js and buildpacks on Heroku, see these Dev Center articles:
To make changes to this buildpack, fork it on Github. Push up changes to your fork, then create a new Heroku app to test it, or configure an existing app to use your buildpack:
# Create a new Heroku app that uses your buildpack heroku create --buildpack <your-github-url> # Configure an existing Heroku app to use your buildpack heroku config:set BUILDPACK_URL=<your-github-url> # You can also use a git branch! heroku config:set BUILDPACK_URL=<your-github-url>#your-branch
Anvil is a generic build server for Heroku.
gem install anvil-cli
The heroku-anvil CLI plugin is a wrapper for anvil.
heroku plugins:install https://github.com/ddollar/heroku-anvil
The ddollar/test buildpack runs
bin/test on your app/buildpack.
heroku build -b ddollar/test # -b can also point to a local directory
For more info on testing, see Best Practices for Testing Buildpacks on the Heroku discussion forum.
Copy the snippet above into CLI.