我目前在Docker容器中运行我的烧瓶应用程序。在我的Dockerfile中,我有一个命令,它将运行python manage.py runserver
来运行应用程序。
但是我想将应用程序部署到Heroku并使用gunicorn服务器运行应用程序。我准备了一个基本的Procfile,看起来像:
web: gunicorn manage:app
当我部署到Heroku时,我收到以下错误:
2016-12-16T00:27:00.905884+00:00 app[api]: Release v91 created by user
2016-12-16T00:27:00.905884+00:00 app[api]: Deployed web (e5d8c5313a04) by user
2016-12-16T00:27:01.904778+00:00 heroku[web.1]: State changed from crashed to starting
2016-12-16T00:27:13.752569+00:00 heroku[web.1]: Starting process with command `python3`
2016-12-16T00:27:15.768266+00:00 heroku[web.1]: State changed from starting to crashed
2016-12-16T00:27:15.740802+00:00 heroku[web.1]: Process exited with status 0
2016-12-16T00:27:17.024469+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=myapp.herokuapp.com request_id=e286fb83-7012-49be-a553-625e8d056115 fwd="82.37.9.108" dyno= connect= service= status=503 bytes=