heroku 错误 Error R10(引导超时)->Web 进程未能在启动后 60 秒内绑定到 $PORT [英] heroku error Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
本文介绍了heroku 错误 Error R10(引导超时)->Web 进程未能在启动后 60 秒内绑定到 $PORT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用 puppeteer 制作了一个刮刀,但我没有指定任何端口来提供它.它只是运行并抓取数据并使用 process.exit()
命令退出.
I made a scraper with puppeteer and I didn't specified any port for serving it. it just runs and scrape data and exits with process.exit()
command.
我使用 cli 将它部署到 heroku,但运行后抛出错误:
I deployed it to heroku with cli but after running it throw error:
Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch.
Stopping process with SIGKILL
Process exited with status 137
怎么了?
推荐答案
看起来您有一个 Web Dyno,因此应用程序必须绑定到 $PORT.
Looks like you have a Web Dyno so the app must bind to $PORT.
如果您不需要传入的 HTTP 请求,您可以改为定义一个工作器(在 Procfile
中).
You can instead define a worker (in the Procfile
) if you do not need incoming HTTP requests.
这篇关于heroku 错误 Error R10(引导超时)->Web 进程未能在启动后 60 秒内绑定到 $PORT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文