Permalink
Browse files

Fixed serving of NowJS

  • Loading branch information...
1 parent f64c333 commit 1e5a218f36b87be36bcced35846760e76a979b37 Chhatoi Pritam Baral committed Oct 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 app.js
View
4 app.js
@@ -56,7 +56,7 @@ app.get('/',function(req,res,next){
staticProvider(req, res, next);
});
var port = process.env.PORT || 3149;
-app.listen(port);
+var server = app.listen(port);
var EDITABLE_APPS_DIR = "/APPS/";
var ENABLE_LAUNCH = false;
@@ -418,7 +418,7 @@ app.get("/allUsersEditingProjects", function(req, res){
// ------------------------------------------------------------
var localFileIsMostRecent = []; // an array of flags indicating if the file has been modified since last save.
var nowjs = require("now");
-var everyone = nowjs.initialize(app);
+var everyone = nowjs.initialize(server);
// ------ REALTIME NOWJS COLLABORATION ------
//var nowcollab = require("../CHAOS/nowcollab");
//nowcollab.initialize(nowjs, everyone, true);

0 comments on commit 1e5a218

Please sign in to comment.