Skip to content

Commit

Permalink
Server listen port can now be defined in environment variables (usefu…
Browse files Browse the repository at this point in the history
…l for Heroku, CloudBees, cloud9), fallback to 8080
  • Loading branch information
danielkutik committed Mar 3, 2013
1 parent fef6185 commit 8502bf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/server.js
Expand Up @@ -2,7 +2,8 @@ var app = require('express')();
var server = require('http').createServer(app);
var webRTC = require('webrtc.io').listen(server);

server.listen(8000);
var port = process.env.PORT || 8080;
server.listen(port);



Expand Down

0 comments on commit 8502bf8

Please sign in to comment.