Commit c214e54d authored by Leo Iannacone's avatar Leo Iannacone

better socket io configuration - DO NOT USE config.debug, it makes conflicts...

better socket io configuration - DO NOT USE config.debug, it makes conflicts with other internal functions
parent 7d63312c
...@@ -12,12 +12,7 @@ var express = require('express') ...@@ -12,12 +12,7 @@ var express = require('express')
var app = module.exports = express.createServer(); var app = module.exports = express.createServer();
var io; var io = require('socket.io').listen(app, config.socket);
if (config.debug.socket)
io = require('socket.io').listen(app);
else
io = require('socket.io').listen(app, { log: false }); // disable-log
// Configuration // Configuration
app.configure(function(){ app.configure(function(){
......
...@@ -12,8 +12,8 @@ config.host = 'localhost' ...@@ -12,8 +12,8 @@ config.host = 'localhost'
config.port = 3000 config.port = 3000
config.user = 'www-data' // who will run server [not fully tested yet] config.user = 'www-data' // who will run server [not fully tested yet]
config.debug = {} config.socket = {}
config.debug.socket = false config.socket.log = false
config.debomatic = {} config.debomatic = {}
config.debomatic.path = '/srv/debomatic-amd64' config.debomatic.path = '/srv/debomatic-amd64'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment