我认为错误可能出在procfile中,但是我尝试的运气都没有
我尝试了至少12种不同的Procfile更改,但是似乎没有任何效果,我尝试更改路径以为可能是问题所在。我还尝试过将creative_agency.wsgi更改为creative_agency.wsgi.application和creative_agency.WSGI_APPLICATION,因为这些是将变量保存在settings.py文件中的方式
日志文件
2019-06-07T16:16:19.567443+00:00 app[web.1]: ModuleNotFoundError: No module named 'creative_agency.wsgi'
2019-06-07T16:16:19.567565+00:00 app[web.1]: [2019-06-07 16:16:19 +0000] [10] [INFO] Worker exiting (pid: 10)
2019-06-07T16:16:19.592819+00:00 app[web.1]: [2019-06-07 16:16:19 +0000] [4] [INFO] Shutting down: Master
2019-06-07T16:16:19.592959+00:00 app[web.1]: [2019-06-07 16:16:19 +0000] [4] [INFO] Reason: Worker failed to boot.
2019-06-07T16:16:19.668495+00:00 heroku[web.1]: Process exited with status 3
2019-06-07T16:16:21.000000+00:00 app[api]: Build succeeded
2019-06-07T16:17:25.387844+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=westandfaring.herokuapp.com request_id=f7e8183d-83cb-4802-b148-d96012042df
e fwd="68.180.94.197" dyno= connect= service= status=503 bytes= protocol=https
2019-06-07T16:17:25.626514+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=westandfaring.herokuapp.com request_id=523ff9c5-1c50-4521-b1b3-
a815108f8af7 fwd="68.180.94.197" dyno= connect= service= status=503 bytes= protocol=https
2019-06-07T16:21:26.403447+00:00 heroku[web.1]: State changed from crashed to starting
2019-06-07T16:21:31.577667+00:00 heroku[web.1]: Starting process with command `gunicorn creative_agency.wsgi`
2019-06-07T16:21:33.645817+00:00 heroku[web.1]: State changed from starting to crashed
settings.py
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'bootstrap4',
'webpage.apps.WebpageConfig'
WSGI_APPLICATION = 'creative_agency.wsgi.application'
Procfile
web: gunicorn creative_agency.wsgi
此外,从主项目目录到wsgi文件的路径是
\Website\creative_agency\creative_agency\wsgi.py