fixed DISABLE_CLUSTER_MODE

This commit is contained in:
David Baldwynn 2017-03-30 12:44:54 -07:00
parent ef6ccaee99
commit bb33d9c4e5
No known key found for this signature in database
GPG key ID: 15D1C13202224A9B

View file

@ -12,7 +12,7 @@ module.exports = function (app, db) {
var io = socketio({ transports: ['websocket', 'polling'] });
if(process.env.DISABLE_CLUSTER_MODE === "TRUE"){
if(process.env.DISABLE_CLUSTER_MODE !== "TRUE"){
var redis = require('socket.io-redis');
io.adapter(redis( process.env.REDIS_URL || { host: process.env.REDIS_DB_PORT_6379_TCP_ADDR || '127.0.0.1' , port: process.env.REDIS_DB_PORT_6379_TCP_PORT || 6379 }));
}