[add] webapp on localhost:10501 (default)

This commit is contained in:
2020-05-03 15:26:16 +02:00
parent 1577230a12
commit 24d9d6578a
15 changed files with 4066 additions and 53 deletions

View File

@@ -2,6 +2,7 @@ import * as minimist from 'minimist'
import * as path from 'path'
import {dwatch} from './lib/dwatch'
import {Watcher} from "./lib/types/state";
import {webappServe} from "./lib/webserver";
process.on('uncaughtException', (err) => {
// Dunno why this specific exception is not caught
@@ -22,8 +23,8 @@ process.on('unhandledRejection', (err) => {
try {
const watchers: Watcher[] = await dwatch(argv.conf || path.join(__dirname, '../app.yml'))
webappServe(watchers)
} catch (e) {
// webappServe(watchers)
console.error(e)
}
})()