Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Server listen port can now be defined in environment variables (usefu…

…l for Heroku, CloudBees, cloud9), fallback to 8080
  • Loading branch information...
commit 8502bf832c57a2af6ee3b3d6c04222c4f873d511 1 parent fef6185
Daniel Kutik danielkutik authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  site/server.js
3  site/server.js
View
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.