我正在尝试将项目部署到heroku。我是django和heroku的新手,所以非常感谢您的帮助。一切顺利进行,直到因应用程序错误而打开heroku应用程序
procfile
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
答案 0 :(得分:-1)
您是否在Heroku中(在设置下)添加了一个buildpack?
您应该添加heroku / python。