[英]Masonite getting error H10 when deploying to Heroku
我将Masonite应用程序部署到Heroku,但一直说应用程序崩溃了。
这是Heroku日志中的错误:
2019-01-15T16:55:36.759023 + 00:00 heroku [router]:at =错误代码= H10 desc =“应用程序崩溃了” method = GET path =“ / api / document / get_from_array?document_kinds,ID_CARD,TAX_ID,SELFIE&profile_id ,2&user_id,8&provider_id,6“ host = sibyl-core.herokuapp.com request_id = 10-12-27161 fwd =” 196.57.188.111“ dyno = connect = service = status = 503 bytes = protocol = https
这适用于localhost,但不适用于Heroku。
这是响应在本地主机上显示的内容:
{
"ID_CARD": [],
"TAX_ID": [],
"SELFIE": []
}
我将Gunicorn用于WSGI服务器。
在大多数情况下,发生这种情况的原因有两个:
通常它是2号,但是如果您要与Gunicorn一起部署,那么您的procfile应该是:
web: gunicorn wsgi:application
如果您认为正确,请运行:
pip freeze > requirements.txt
然后尝试重新部署。 pip freeze
点将确保您的requirements.txt与当前环境中的所有依赖关系保持最新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.