【发布时间】:2020-08-29 00:22:40
【问题描述】:
当我运行heroku local web 时出现以下错误:
1:53:52 PM web.1 | [2020-08-28 13:53:52 -0500] [1226] [INFO] Starting gunicorn 20.0.4
1:53:52 PM web.1 | [2020-08-28 13:53:52 -0500] [1226] [ERROR] Connection in use: ('0.0.0.0', 5000)
1:53:52 PM web.1 | [2020-08-28 13:53:52 -0500] [1226] [ERROR] Retrying in 1 second.
1:53:53 PM web.1 | [2020-08-28 13:53:53 -0500] [1226] [ERROR] Connection in use: ('0.0.0.0', 5000)
1:53:53 PM web.1 | [2020-08-28 13:53:53 -0500] [1226] [ERROR] Retrying in 1 second.
我正在尝试通过 Heroku 在本地运行 Flask 应用程序,但出现此错误。这个问题很常见,但我尝试了几种解决方案,但都失败了。当我运行 ps -ef | grep gunicorn 或 ps -ax | grep gunicorn,唯一出现的 gunicorn 进程是刚刚运行的 grep 命令。我也对端口 5000 进行了 grepped,什么都没有。请让我知道您想查看哪些文件。谢谢!
【问题讨论】:
-
优秀。我已将此评论升级为答案。请考虑接受。