12 lines
315 B
TypeScript
12 lines
315 B
TypeScript
|
import { app } from './app'
|
||
|
import { logger } from './logger'
|
||
|
|
||
|
const port = app.get('port')
|
||
|
const host = app.get('host')
|
||
|
|
||
|
process.on('unhandledRejection', (reason) => logger.error('Unhandled Rejection %O', reason))
|
||
|
|
||
|
app.listen(port).then(() => {
|
||
|
logger.info(`Feathers app listening on http://${host}:${port}`)
|
||
|
})
|