我正在为ReactJS应用程序开发Hapi服务器,但是当我尝试部署到Heroku时,出现R10错误无法在启动后的60秒内绑定到$ PORT。到底是怎么回事?我正在使用process.env.PORT。我也尝试过parseInt()。还尝试禁用不同的软件包。
在Heroku日志中,我看到来自index.js(Hapi running on ...)的控制台日志,但是R10错误出现,服务器重新启动,然后崩溃。
==>
I'm working on a Hapi server for a ReactJS app but when I try to deploy to Heroku, I get the R10 error "Failed to bind to $PORT within 60 seconds of launch". What is going on? I'm using process.env.PORT. I also tried parseInt() around it. Also tried disabling varying packages. The build is successful always.
In the Heroku logs, I see the console log from the index.js ("Hapi running on ...") but then the R10 error shows up and the server restarts, then crashes.
==>
更多推荐
heroku上的Hapi服务器无法绑定端口
发布评论