Fixed autoJoin Env variables

This commit is contained in:
Sam 2018-07-20 23:10:13 +10:00
parent e216b99f8d
commit aa325dad50
1 changed files with 7 additions and 2 deletions

View File

@ -2,10 +2,15 @@ var git = require('git-rev-sync')
// console.log('Production env', process.env)
let settingsHelper = new (require('../SettingsHelper'))()
let settings = new (require('../SettingsHelper'))()
module.exports = {
NODE_ENV: '"production"',
gitHash: '"' + git.short() + '"',
gitDate: '"' + git.date() + '"'
gitDate: '"' + git.date() + '"',
autoJoin: '"' + settings.autoJoin + '"',
autoJoinRoom: '"' + settings.autoJoinRoom + '"',
autoJoinPassword: '"' + settings.autoJoinPassword + '"',
autoJoinServer: '"' + settings.autoJoinServer + '"'
}