Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "app: use sticky session"

This reverts commit 1b928a0.
  • Loading branch information...
commit 7d55e1a53f68bfd3eebfc69c1922bfdd0b2c297b 1 parent 1b928a0
@indutny authored
Showing with 13 additions and 17 deletions.
  1. +12 −15 app.js
  2. +1 −2  package.json
View
27 app.js
@@ -3,27 +3,24 @@ var express = require('express'),
jade = require('jade'),
path = require('path'),
http = require('http'),
- sticky = require('sticky-session'),
app = express();
-sticky(function() {
- var app = express(),
- server = http.createServer(app);
+var server = http.createServer(app);
- app.use(express.static(path.resolve(__dirname, 'public')));
- app.use(express.bodyParser());
- app.use(app.router);
+app.use(express.static(path.resolve(__dirname, 'public')));
+app.use(express.bodyParser());
+app.use(app.router);
- app.engine('jade', jade.__express);
+app.engine('jade', jade.__express);
- // Add routes
- require('./app/routes').add(app);
+// Add routes
+require('./app/routes').add(app);
- io = io.listen(server);
+io = io.listen(server);
- app.io = io;
+app.io = io;
- return server;
-}).listen(process.env.SERVER_PORT || 8080, function() {
- console.log('Server started on %d', process.env.SERVER_PORT || 8080);
+server.listen(process.env.SERVER_PORT || 8080, function() {
+ var addr = this.address();
+ console.log('Server started on %s:%d', addr.address, addr.port);
});
View
3  package.json
@@ -8,7 +8,6 @@
"socket.io": "~0.9.10",
"marked": "~0.2.5",
"jade": "~0.27.5",
- "redis": "~0.8.1",
- "sticky-session": "0.0.5"
+ "redis": "~0.8.1"
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.