For more information about using this Node.js buildpack on Heroku, check the README from the official buildpack.
This buildpack only changes two things:
releasejust exits instead of trying to do
npm start(i.e. start the NodeJS app)
compilescript also builds the production code by running
npm run build.
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 buildpacks:set <your-github-url> # You can also use a git branch! heroku buildpacks:set <your-github-url>#your-branch
Copy the snippet above into CLI.