Merge pull request #265 from cubedro/develop

secret from js to json
This commit is contained in:
Marian OANCΞA 2015-08-19 21:05:07 +03:00
commit 2524a797f8
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@ -10,4 +10,4 @@ config/nodes.js
*.swp *.swp
*.pem *.pem
.node-xmlhttprequest-* .node-xmlhttprequest-*
ws_secret.js ws_secret.json

2
app.js
View File

@ -20,7 +20,7 @@ if( !_.isUndefined(process.env.WS_SECRET) && !_.isNull(process.env.WS_SECRET) )
else else
{ {
try { try {
WS_SECRET = require('./ws_secret.js'); WS_SECRET = require('./ws_secret.json');
} }
catch (e) catch (e)
{ {