Skip to content

The official Heroku buildpack for Node.js, with added bower install and grunt compile steps

License

Notifications You must be signed in to change notification settings

coroutine/heroku-buildpack-nodejs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Buildpack for Node.js

This is a Heroku buildpack for Node.js apps.

The buildpack will detect your app as Node.js if it has a package.json file in the root. It will use npm to install your dependencies, and vendors a version of the Node.js runtime into your slug.

Example Usage

$ ls
Procfile  package.json  web.js

$ heroku create

$ git push heroku master
...
-----> Heroku receiving push
-----> Fetching custom buildpack
-----> Node.js app detected
-----> Vendoring node 0.4.7
-----> Installing dependencies with npm 1.0.8
       [email protected] ./node_modules/express
       ├── [email protected]
       ├── [email protected]
       └── [email protected]
       Dependencies installed

Node.js and npm versions

You can specify the versions of Node.js and npm your application requires using package.json

{
  "name": "myapp",
  "version": "0.0.1",
  "engines": {
    "node": "~0.10.13",
    "npm": "~1.3.2"
  }
}

To list the available versions of Node.js and npm, see these manifests:

Documentation

For more information about buildpacks and Node.js, see these Dev Center articles:

Hacking

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

For more detailed information about testing buildpacks, see CONTRIBUTING.md

About

The official Heroku buildpack for Node.js, with added bower install and grunt compile steps

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 88.9%
  • Perl 11.1%