【发布时间】:2019-07-30 13:10:33
【问题描述】:
我正在尝试将我的项目部署到 heroku。我是 django 和 heroku 的新手,所以我很感激任何帮助。一切顺利,直到打开heroku应用程序出现应用程序错误
过程文件
web: gunicorn count_project.wsgi
requirements.txt
dj-database-url==0.5.0
Django==2.2
django-heroku==0.3.1
gunicorn==19.9.0
psycopg2==2.8.3
pytz==2019.1
sqlparse==0.3.0
whitenoise==4.1.3
运行时.txt
python-3.7.3
运行heroku日志后的消息--tail
2019-07-30T13:03:42.277475+00:00 heroku[web.1]: Starting process with command `gunicorn count_project.wsgi`
2019-07-30T13:03:46.087651+00:00 heroku[web.1]: State changed from starting to crashed
2019-07-30T13:03:46.065132+00:00 heroku[web.1]: Process exited with status 127
2019-07-30T13:03:46.018957+00:00 app[web.1]: bash: gunicorn: command not found
2019-07-30T13:03:46.000000+00:00 app[api]: Build succeeded
2019-07-30T13:03:58.852793+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=countthewords.herokuapp.com request_id=77fd8632-f1ec-4f12-9271-3f9c42dc19d3 fwd="95.102.233.42" dyno= connect= service= status=503 bytes= protocol=https
2019-07-30T13:04:00.698445+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=countthewords.herokuapp.com request_id=f05da2fd-0222-4ef6-a005-b4dcbd0993ce fwd="95.102.233.42" dyno= connect= service= status=503 bytes= protocol=https
【问题讨论】:
-
你也有
Pipfile和/或Pipfile.lock吗?