【发布时间】:2018-06-05 15:26:31
【问题描述】:
我创建了我的第一个 Django 2.0 项目并尝试将其部署到 Heroku。
我已经设置好了,所有的推拉都很顺利。
但是当我使用
访问我的应用程序端点时https://jotitdown.herokuapp.com
它没有加载,heroku logs 给出了这个错误
2017-12-23T07:04:45.333450+00:00 heroku[router]:
at=error code=H10 desc="App crashed" method=GET path="/"
host=jotitdown.herokuapp.com request_id=cd2a9bb6-fae8-4317-af39-b271c1d74af5
fwd="45.115.107.34" dyno= connect= service= status=503 bytes= protocol=https
我在settings.py中设置了这个,这里`
DEBUG = True
ALLOWED_HOSTS = ['*', 'jotitdown.herokuapp.com', '*.herokuapp.com']
和Profile
web: gunicorn notepad.wsgi --log-file -
我尝试在本地运行
heroku local web
它给出了错误
[WARN] No ENV file found
web.1 | /bin/sh: gunicorn: command not found
web.1 Exited with exit code 127
【问题讨论】:
标签: django heroku django-2.0