A template project for running NodeJS on Nginx on Heroku
JavaScript CSS
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
conf Revert nginx config Feb 4, 2014
static Initial commit Aug 18, 2013
.buildpacks Initial commit Aug 18, 2013
.gitignore Initial commit Aug 18, 2013
LICENSE Initial commit Aug 18, 2013
README.md Updated readme Aug 18, 2013
app.js Switch to express Feb 4, 2014
package.json Try express on socket Feb 4, 2014

README.md

Nodejs-Nginx-Template

A template project for running NodeJS with Nginx as the server on Heroku.

Usage

$ heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git

After the buildpack has been added edit the package.json to reflect your projects needs and write your code in app.js. app.js needs to be the startup script for the nodeJS instance running via Nginx but extra workers etc can be written as normal. The socket being listened to in app.js must correspond with the socket in conf/nginx.conf.erb. If one is renamed you must rename the other one to match.