aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/index.js
blob: d68605bc6c2f0bc736ec4d5d11f4aeebe9362ca2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* eslint-disable no-console */
const logger = require('./logger');
const app = require('./app');
const port = app.get('port');
const server = app.listen(port);

process.on('unhandledRejection', (reason, p) =>
  logger.error('Unhandled Rejection at: Promise ', p, reason)
);

server.on('listening', () =>
  logger.info('Feathers application started on http://%s:%d', app.get('host'), port)
);