howyoucanhelp.us/backend/src/index.ts

17 lines
416 B
JavaScript

#!/usr/bin/env node
const winston = require('winston');
import app from './app';
const logger : any = winston.createLogger();
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 %s:%d', app.get('host'), port)
);