繁体   English   中英

将Django应用程序部署到heroku:应用程序错误

[英]deploing django app to heroku: application error

我正在尝试将项目部署到heroku。 我是django和heroku的新手,所以非常感谢您的帮助。 一切顺利进行,直到因应用程序错误打开heroku应用程序

proc文件

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

runtime.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

您是否在Heroku中添加了一个buildpack(在设置下)?

您应该添加heroku / python。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM