我想在Heroku上使用gunicorn服务猎鹰应用程序。在Heroku的摊位上使用Gunicorn的猎鹰应用程序
我几乎遵循猎鹰文档并创建了一个基本的应用程序。
我正在使用psycopg2在处理请求时向每个资源添加连接游标。
web: gunicorn app:api --log-level=DEBUG --worker-class=gevent
但现在每个请求导致超时:
Feb 06 18:10:01 d.19db00e4-faf8-47bc-aaea-c78a52163a24 heroku/router: at=error code=H12 desc="Request timeout" method=GET path="/" host=falcon-raptor-api.herokuapp.com request_id=3b29350f-8990-430c-92e8-02458d91a2f9 fwd="54.91.242.125" dyno=web.1 connect=1ms service=30001ms status=503 bytes=0
我觉得这是psycopg2或gunicorn或两者的一个问题。
有什么建议吗?