Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 3c3c0b7d4d2474d25ef3970574dc0f5d59956eeb 1 parent 31c09d0
@kriszyp kriszyp authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  start-node.js
View
2  start-node.js
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.