wildflock/index.ts

12 lines
315 B
TypeScript
Raw Normal View History

2023-07-29 18:10:00 +00:00
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}`)
})