2019-05-25T11:36:36.289133+00:00 app[web.1]: File "/app/ecommerce/settings.py", line 16, in <module>
2019-05-25T11:36:36.289134+00:00 app[web.1]: import env
2019-05-25T11:36:36.289178+00:00 app[web.1]: ModuleNotFoundError: No module named 'env'
2019-05-25T11:36:36.289942+00:00 app[web.1]: [2019-05-25 11:36:36 +0000] [11] [INFO] Worker exiting (pid: 11)
2019-05-25T11:36:36.438624+00:00 app[web.1]: [2019-05-25 11:36:36 +0000] [4] [INFO] Shutting down: Master
2019-05-25T11:36:36.438708+00:00 app[web.1]: [2019-05-25 11:36:36 +0000] [4] [INFO] Reason: Worker failed to boot.
2019-05-25T11:36:36.520758+00:00 heroku[web.1]: State changed from starting to crashed
2019-05-25T11:36:36.504539+00:00 heroku[web.1]: Process exited with status 3
2019-05-25T12:23:44.883193+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=django-project-helmy.herokuapp.com request_id=f5cce178-1385-40ef-aa28-1bec8c12d412 fwd="121.7.201.198" dyno= connect= service= status=503 bytes= protocol=https
2019-05-25T12:23:45.573689+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=django-project-helmy.herokuapp.com request_id=a6a496e6-5dd6-49cf-91b5-fac3fdff9de2 fwd="121.7.201.198" dyno= connect= service= status=503 bytes= protocol=https
2019-05-25T12:28:55.739148+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=django-project-helmy.herokuapp.com request_id=c7f46f87-e1a3-4d6a-8169-15b6c6c94d8e fwd="121.7.201.198" dyno= connect= service= status=503 bytes= protocol=https
2019-05-25T12:28:56.174385+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=django-project-helmy.herokuapp.com request_id=4f0b3a7f-84bd-4d93-864e-5299625af45d fwd="121.7.201.198" dyno= connect= service= status=503 bytes= protocol=https
答案 0 :(得分:0)
您似乎没有在虚拟环境(requirements.txt
)中安装某些软件包。如果这些模块是env
[PyPi],则为一个。
如documentation of Heroku on Python dependencies中所指定:
要通过
pip
在Heroku上指定Python软件包依赖项,请将名为pip
的{{1}}需求文件添加到以下项的根您的存储库。
您的文件将包含requirements.txt
,但您可能也忘记了指定其他软件包。