initial commit
This commit is contained in:
14
src/index.js
Normal file
14
src/index.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const logger = require('winston');
|
||||
const app = require('./app');
|
||||
const port = app.get('port');
|
||||
const server = app.listen(port);
|
||||
|
||||
app.startNext();
|
||||
|
||||
server.on('listening', () =>
|
||||
logger.info('MYKB listening at http://%s:%d', app.get('host'), port)
|
||||
);
|
||||
|
||||
process.on('unhandledRejection', (reason, p) =>
|
||||
logger.error('Unhandled Rejection at: Promise ', p, reason)
|
||||
);
|
||||
Reference in New Issue
Block a user