Quantcast
Channel: Hapi server on heroku fails to bind port - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by zebapy for Hapi server on heroku fails to bind port

$
0
0

process.env.HOST was undefined on Heroku, and for some reason it didn't like localhost as the host, which caused the issue.

I simply removed the host var all together, so connection looks like:

server.connection({  port: process.env.PORT || 3000,  labels: ['api'],})

Viewing all articles
Browse latest Browse all 2

Trending Articles