Merge pull request #266 from cubedro/develop

WS_SECRET json accepts object
This commit is contained in:
Marian OANCΞA 2015-08-19 21:21:41 +03:00
commit 10541dcb9f
1 changed files with 3 additions and 2 deletions

5
app.js
View File

@ -20,11 +20,12 @@ if( !_.isUndefined(process.env.WS_SECRET) && !_.isNull(process.env.WS_SECRET) )
else
{
try {
WS_SECRET = require('./ws_secret.json');
var tmp_secret_json = require('./ws_secret.json');
WS_SECRET = _.values(tmp_secret_json);
}
catch (e)
{
console.error("WS_SECRET NOT SET");
console.error("WS_SECRET NOT SET!!!");
}
}