[add] webapp on --host and --port (optionals)
This commit is contained in:
@@ -23,7 +23,7 @@ process.on('unhandledRejection', (err) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const watchers: Watcher[] = await dwatch(argv.conf || path.join(__dirname, '../app.yml'))
|
const watchers: Watcher[] = await dwatch(argv.conf || path.join(__dirname, '../app.yml'))
|
||||||
webappServe(watchers)
|
webappServe(watchers, argv.host, argv.port)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user