basic support for cloudfoundry.

Add
 - Entry point server.js
 - Load port and mysql configuraion from env variable
 - Tunable polling duration
This commit is contained in:
Andrew Liu 2011-08-24 21:59:50 +08:00
parent 7e4bba0e31
commit 95f1992e4d
4 changed files with 44 additions and 1 deletions

View file

@ -419,6 +419,8 @@ async.waterfall([
//this is only a workaround to ensure it works with all browers behind a proxy
//we should remove this when the new socket.io version is more stable
io.set('transports', ['xhr-polling']);
io.set('polling duration', settings.pollingDuration)
var socketIOLogger = log4js.getLogger("socket.io");
io.set('logger', {