Permalink
Browse files

Check for a PORT env variable to make it easy to use with Heroku

  • Loading branch information...
1 parent 31c09d0 commit 3c3c0b7d4d2474d25ef3970574dc0f5d59956eeb @kriszyp kriszyp committed Nov 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 start-node.js
View
@@ -7,7 +7,7 @@ exports.start = function(jsgiApp, socketApp){
var server = require("http").createServer(
require("jsgi-node").Listener(jsgiApp)
);
- var port = settings.port || 8080;
+ var port = settings.port || process.env.PORT || 80;
server.listen(port);
require("jsgi-node/ws-jsgi")(ws.createServer({
server: server

0 comments on commit 3c3c0b7

Please sign in to comment.