Skip to content

Commit

Permalink
Fix connection port
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Otalora committed Oct 3, 2018
1 parent 13409a5 commit eb48377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/infraweb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export abstract class InfraWeb {
public startServer() {
const { port, env } = config.get('server')
this.server = http.createServer(this.app)
this.server.listen(port, () => {
this.server.listen(process.env.PORT || port, () => {
const log = bunyan.createLogger({ name: 'Start Server:' })
log.info(`=> Servidor corriendo en el puerto ${port} en ${env} mode`)
log.info(`=> Servidor corriendo en el puerto ${process.env.PORT || port} en ${env} mode`)
})
}

Expand Down

0 comments on commit eb48377

Please sign in to comment.