【发布时间】:2018-07-23 16:07:51
【问题描述】:
伙计们,我尝试将 django 添加到 heruko,但是当我尝试通过给定域访问我的网站时 我遇到了应用程序错误的问题 这是我的错误日志 kuapp.com request_id=3226d7fe-a42e-4c41-8618-74f00206f5af fwd="103.49.121.34" dyno= connect= service= status=503 bytes= pr
otocol=https
2018-07-23T14:37:30.570428+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=m
xiondrf.herokuapp.com request_id=7bfb5e64-d420-4454-9ae2-bcc5845708f2 fwd="103.49.121.34" dyno= connect= service= status=50
3 bytes= protocol=https
2018-07-23T14:38:07.207498+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/robots.txt" host=mx
iondrf.herokuapp.com request_id=7172dd6c-03e3-4b97-a671-a8955e17a9b0 fwd="88.99.195.205" dyno= connect= service= status=503
bytes= protocol=http
2018-07-23T14:38:07.399990+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mxiondrf.her
okuapp.com request_id=5ef69e04-2675-43c3-b498-1c31b9d734cc fwd="88.99.195.205" dyno= connect= service= status=503 bytes= pr
otocol=http
2018-07-23T14:38:10.972312+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mxiondrf.her
okuapp.com request_id=1269c22d-b338-4a5c-b3c5-eae226c0a479 fwd="103.49.121.34" dyno= connect= service= status=503 bytes= pr
otocol=https
2018-07-23T14:38:11.368496+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=m
xiondrf.herokuapp.com request_id=fe34bf01-5208-48f5-99f1-855268cc8853 fwd="103.49.121.34" dyno= connect= service= status=50
3 bytes= protocol=https
感谢任何形式的帮助
【问题讨论】:
-
这个不多解释。有一种方法可以通过 Heroku 访问 django 日志记录。我可以在一个小时左右再次检查。但是试试
heroku run python manage.py runserver。 -
尝试使用 python manage.py runserver 但没用
-
你能显示你的 Procfile 吗?
-
我通过添加 web 找到了解决方案:python manage.py runserver 0.0.0.0:$PORT
-
抱歉没能早点帮到您。正在工作。我也找到了这个解决方案。
标签: django heroku heroku-postgres heroku-ci