Compare commits

...

2 Commits

Author SHA1 Message Date
kts of kettek (POWERQWACK) e4d898a2ff Add port to stdout log 2021-05-18 02:52:25 -07:00
kts of kettek (POWERQWACK) 366c1c0690 Add port to config 2021-05-18 02:51:47 -07:00
1 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@ const app = {
config: { config: {
srd: 'srd', srd: 'srd',
plugins: {}, plugins: {},
port: 7331,
}, },
live: { live: {
dictionary: {}, dictionary: {},
@ -96,7 +97,7 @@ try {
} }
/* ==== CMDLINE ============================================================= */ /* ==== CMDLINE ============================================================= */
const port = 7331 const port = app.config.port
process.argv.forEach((val, index, array) => { process.argv.forEach((val, index, array) => {
let parts = val.split('=') let parts = val.split('=')
let key = '' let key = ''
@ -124,6 +125,7 @@ const server = exp.listen(port, async () => {
console.error('plugin', err) console.error('plugin', err)
} }
} }
console.log('running on', port)
}) })
process.on('SIGINT', () => { process.on('SIGINT', () => {