Compare commits
2 Commits
3406d9c43f
...
e4d898a2ff
Author | SHA1 | Date |
---|---|---|
|
e4d898a2ff | |
|
366c1c0690 |
4
index.js
4
index.js
|
@ -16,6 +16,7 @@ const app = {
|
|||
config: {
|
||||
srd: 'srd',
|
||||
plugins: {},
|
||||
port: 7331,
|
||||
},
|
||||
live: {
|
||||
dictionary: {},
|
||||
|
@ -96,7 +97,7 @@ try {
|
|||
}
|
||||
|
||||
/* ==== CMDLINE ============================================================= */
|
||||
const port = 7331
|
||||
const port = app.config.port
|
||||
process.argv.forEach((val, index, array) => {
|
||||
let parts = val.split('=')
|
||||
let key = ''
|
||||
|
@ -124,6 +125,7 @@ const server = exp.listen(port, async () => {
|
|||
console.error('plugin', err)
|
||||
}
|
||||
}
|
||||
console.log('running on', port)
|
||||
})
|
||||
|
||||
process.on('SIGINT', () => {
|
||||
|
|
Loading…
Reference in New Issue