Buildpack for Node.js apps with a build step defined on the package.json
Inspect for a package.json
file and a build task defined within the scripts section.
Use after nodejs buildpack:
# create the app with nodejs buildpack
heroku create my-app --buildpack heroku/nodejs
# add heroku-bp-node-build
heroku buildpacks:add --index 2 https://github.com/carloluis/heroku-bp-node-build
{
"buildpacks": [
{
"url": "heroku/nodejs"
},
{
"url": "https://github.com/carloluis/heroku-bp-node-build"
}
]
}
Lock your buildpack to one specific version:
- First, find the version you want from buildpack versions.
- Then, specify that version with
buildpacks:set
heroku buildpacks:set https://github.com/carloluis/heroku-bp-node-build#v0.1.0 -a my-app
Read related info with buildpacks here.
Buildpack Registry
This buildpack is available as carloluis/node-build
on the Heroku Buildpack Registry.
MIT © Carloluis