Celtech/shout-it

View on GitHub
packages/api/src/index.js

Summary

Maintainability
A
0 mins
Test Coverage
/* 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,
),
);