【问题标题】:Django App on Heroku :Application crashedHeroku 上的 Django 应用程序:应用程序崩溃
【发布时间】: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


【解决方案1】:

我也遇到了这个问题,就我而言,这是因为我的 Procfile 文件没有像procfile 那样大写而不是“Procfile”,后者是正确的。还要确保您的个人资料包含 -

web: gunicorn MY_PROJECT.wsgi

【讨论】:

    猜你喜欢
    • 2015-04-22
    • 2016-11-20
    • 2015-03-16
    • 1970-01-01
    • 2019-02-06
    • 2011-10-03
    • 2019-01-03
    相关资源
    最近更新 更多