start a web server
This commit is contained in:
@@ -5,3 +5,5 @@ import Web from './Web.ts';
|
||||
const config = JSON.parse(await fs.promises.readFile(process.env.config || path.join('config', 'config.json'), 'utf-8'));
|
||||
|
||||
const web = new Web(config);
|
||||
|
||||
process.on('SIGTERM', web.close);
|
||||
|
||||
Reference in New Issue
Block a user