我是Heroku的新手,但我正在构建一个应用程序,它需要保持在线,并接收和处理来自另一个服务器的事件。我总是得到相同的日志:
2021-07-10T22:34:14.667474+00:00 heroku[web.1]: Starting process with command `cd /app/heroku_output && ./ForceGamesHelper`
2021-07-10T22:34:46.000000+00:00 app[api]: Build succeeded
2021-07-10T22:35:15.055194+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2021-07-10T22:35:15.105411+00:00 heroku[web.1]: Stopping process with SIGKILL
2021-07-10T22:35:15.191790+00:00 heroku[web.1]: Process exited with status 137
2021-07-10T22:35:15.258254+00:00 heroku[web.1]: State changed from starting to crashed我使用一个while循环和一个可以异步更改的退出条件来保持进程的活动状态。
我尝试过Procfiles之类的不同解决方案,但我尝试过的命令似乎并不存在于我的项目中。任何帮助都是非常感谢的!
发布于 2021-07-20 21:42:11
我猜你正在尝试使用web进程来运行.net核心控制台应用程序(heroku试图侦听$PORT不能这样做而崩溃)。
尝试使用自定义Procfile并设置工作进程,而不是web。
Heroku过程模型https://devcenter.heroku.com/articles/process-model在这里检查存在的问题https://github.com/jincod/dotnetcore-buildpack/search?q=worker&type=issues
https://stackoverflow.com/questions/68332606
复制相似问题