Heroku:部署python Django App后,“进程退出状态为127”

时间:2018-03-30 07:37:51

标签: python django python-3.x heroku django-templates

在Heroku上部署应用程序后,当我运行我的应用程序时,它显示如下错误: 应用程序错误 应用程序中发生错误,无法提供您的页面。如果您是应用程序所有者,请检查日志以获取详细信息。

当我查看它显示的日志时:
2018-03-30T07:25:13.273255 + 00:00 heroku [web.1]:退出状态为127的流程
2018-03-30T07:25:14.757951 + 00:00 heroku [router]:at = error code = H10 desc =“App crashed”method = GET path =“/”host = protected-journey-42490.herokuapp.com request_id = fdaf6efd-b490-4848-8f55-f583f1fc6b50 fwd =“125.16.236.158”dyno = connect = service = status = 503 bytes = protocol = https
2018-03-30T07:25:15.888944 + 00:00 heroku [router]:at = error code = H10 desc =“App crashed”method = GET path =“/ favicon.ico”host = protected-journey-42490.herokuapp .com request_id = 7cdefbb6-e1a0-42bf-bb4d-0deed69f9c61 fwd =“125.16.236.158”dyno = connect = service = status = 503 bytes = protocol = https

这是我的存储库的参考链接: pages_project

1 个答案:

答案 0 :(得分:1)

如果您使用的是gunicorn,则将其添加到requitements.txt文件中