Django,使用uvicorn部署到heroku

问题描述

我有一个使用daphne部署到Heroku的Django应用。

我想用uvicorn代替daphne,所以我将procfile更改为以下内容

web: bin/start-pgbouncer uvicorn rivendell.asgi:application --limit-max-requests=1200 --port $PORT
worker: python manage.py runworker channel_layer -v2

但是服务器启动并几乎立即崩溃,并出现以下错误

Error R10 (Boot timeout) -> Web process Failed to bind to $PORT within 60 seconds of launch

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)