【发布时间】:2018-12-28 14:39:19
【问题描述】:
我在 aiohttp 上构建了一个简单的 Web 服务器并尝试将其部署在 heroku 上,但部署后我收到一条错误消息:
at=error code=H14 desc="No web processes running" dyno= connect= service= status=503 bytes= protocol=https
项目结构:
├── application.py
├── Procfile
├── requirements.txt
├── routes.py
└── views
├── bot_team_oranizer.py
├── index.py
└── __init__.py
application.py
from aiohttp import web
from routes import setup_routes
app = web.Application()
setup_routes(app)
web.run_app(app)
过程文件:
web: gunicorn application:app
为什么 web 服务器没有在 heroku 上启动?
【问题讨论】: