Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed port to be set via env

  • Loading branch information...
commit c1896bbedfbadbfab1e34a6298ff4ed2ef0c554e 1 parent af4a81e
@romanlehnert authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  index.js
View
3  index.js
@@ -1,5 +1,6 @@
var app = require('express').createServer();
var sites = require('./lib/sitescollection')();
+var port = process.env.PORT || 3000;
// Setup some sites:
var palabea = sites.createSite({id: "palabea", callbackUrl: "http://google.com/timeout/:userId"});
@@ -19,4 +20,4 @@ app.get('/sites/:siteId/users/:userId/ping', function(req,res){
-app.listen(3000);
+app.listen(port);
Please sign in to comment.
Something went wrong with that request. Please try again.