|
|
@ -9,6 +9,8 @@ var express = require('express') |
|
|
|
var app = module.exports = express.createServer(); |
|
|
|
var app = module.exports = express.createServer(); |
|
|
|
var io = require('socket.io').listen(app); |
|
|
|
var io = require('socket.io').listen(app); |
|
|
|
var sockets = require(__dirname+'/sockets')(io); |
|
|
|
var sockets = require(__dirname+'/sockets')(io); |
|
|
|
|
|
|
|
var package = require(__dirname+'/package.json'); |
|
|
|
|
|
|
|
var config = require(package.path.config); |
|
|
|
|
|
|
|
|
|
|
|
// Configuration
|
|
|
|
// Configuration
|
|
|
|
|
|
|
|
|
|
|
@ -34,7 +36,7 @@ app.configure('production', function(){ |
|
|
|
|
|
|
|
|
|
|
|
app.get('/', routes.index); |
|
|
|
app.get('/', routes.index); |
|
|
|
|
|
|
|
|
|
|
|
app.listen(8889, function() { |
|
|
|
app.listen(config.port, function() { |
|
|
|
console.log("Express server listening on port %d in %s mode", |
|
|
|
console.log("Express server listening on port %d in %s mode", |
|
|
|
app.address().port, app.settings.env); |
|
|
|
app.address().port, app.settings.env); |
|
|
|
}); |
|
|
|
}); |
|
|
|