Skip to content
Browse files

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

…l for Heroku, CloudBees, cloud9), fallback to 8080
  • Loading branch information...
1 parent fef6185 commit 8502bf832c57a2af6ee3b3d6c04222c4f873d511 @danielkutik danielkutik committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 site/server.js
View
3 site/server.js
@@ -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);

0 comments on commit 8502bf8

Please sign in to comment.
Something went wrong with that request. Please try again.