Skip to content

Commit

Permalink
get port as env
Browse files Browse the repository at this point in the history
  • Loading branch information
Idokah committed Oct 3, 2023
1 parent e61c95b commit 3d21527
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/velo-external-db/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export const createApp = async() => {
const app = express()
const initConnectorResponse = await initConnector()
app.use(initConnectorResponse.externalDbRouter.router)
const server = app.listen(8080, () => console.log('Connector listening on port 8080'))
const port = process.env.PORT || 8080
const server = app.listen(port, () => console.log(`Connector listening on port ${port}`))

return { server, ...initConnectorResponse, reload: () => initConnector() }
}

0 comments on commit 3d21527

Please sign in to comment.