This was forked from the official Heroku buildpack for Node.js apps.
This buildback checks if the app has a
web folder with
package.json inside it.
This buildpack uses
web folder as root for
It has a script that builds local dependencies under
packages folder and a local dependency from
The repository containing the app should have a similar structure to this:
- common - package.json - packages - local-dep1 - package.json - local-dep2 - package.json ... - web - package.json - Procfile (optional)
For more general information about buildpacks on Heroku:
In production, you frequently want to lock all of your dependencies - including buildpacks - to a specific version. That way, you can regularly update and test them, upgrading with confidence.
First, find the version you want from
the list of buildpack versions.
Then, specify that version with
heroku buildpacks:set https://github.com/indigotech/buildpack-template-react#v83 -a my-app
This buildpack automatically exports node, npm, and any node_modules binaries
$PATH for easy use in subsequent buildpacks.
Having trouble? Dig it? Feature request?
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
The buildpack tests use Docker to simulate Heroku's Cedar-14 and Heroku-16 containers.
To run the test suite:
Or to just test in cedar or cedar-14:
make test-cedar-14 make test-heroku-16
The tests are run via the vendored shunit2 test framework.
Copy the snippet above into CLI.