first commit
This commit is contained in:
11
index.ts
Normal file
11
index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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}`)
|
||||
})
|
||||
Reference in New Issue
Block a user