Skip to content

Commit

Permalink
server start logging to please devops
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarsson committed Jul 7, 2023
1 parent 2998015 commit 09e9fc4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import { createServicesFromEnv } from './services'
import type { Services } from './types'

const services: Services = createServicesFromEnv()

const port = process.env.PORT || 4000
/** Main entry point that start and runs web server */
void createApp({
services,
validateResponse: false,
}).start(process.env.PORT || 4000)
})
.start(process.env.PORT || 4000)
.then(() => console.log(`Haffa backend running on port ${port}`))

0 comments on commit 09e9fc4

Please sign in to comment.