Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.06 KB

README.md

File metadata and controls

31 lines (24 loc) · 1.06 KB

Heroku buildpack: Node.js

This is a Heroku buildpack for Node.js v0.6.13 apps. It uses NPM and SCons.

Usage

Example usage:

$ ls
Procfile  package.json  web.js

$ heroku create --stack cedar --buildpack http://github.com/hakobera/heroku-buildpack-nodejs.git

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

The buildpack will detect your app as Node.js if it has the file package.json in the root. It will use NPM to install your dependencies, and vendors a version of the Node.js runtime into your slug. The node_modules directory will be cached between builds to allow for faster NPM install time.