我正在尝试将我的应用程序部署到 heroku。
部署已正确完成,但出现服务器错误(500)。
当我将 DEBUG 设为 true 时,不会发生服务器错误。
所以我认为加载静态文件有问题。
我在日志中找不到任何值得注意的严重错误。
我已经安装了 whitenoise,但它不起作用。
有没有人解决这个问题?
Heroku 日志
2019-02-26T17:01:26.064554+00:00 heroku[web.1]: State changed from down to starting
2019-02-26T17:01:34.347474+00:00 heroku[web.1]: Starting process with command `gunicorn project5.wsgi --log-file -`
2019-02-26T17:01:37.602081+00:00 heroku[web.1]: State changed from starting to up
2019-02-26T17:01:37.192553+00:00 app[web.1]: [2019-02-26 17:01:37 +0000] [4] [INFO] Starting gunicorn 19.9.0
2019-02-26T17:01:37.199091+00:00 app[web.1]: [2019-02-26 17:01:37 +0000] [4] [INFO] Listening at: http://0.0.0.0:35760 (4)
2019-02-26T17:01:37.199669+00:00 app[web.1]: [2019-02-26 17:01:37 +0000] [4] [INFO] Using worker: sync
2019-02-26T17:01:37.219788+00:00 app[web.1]: [2019-02-26 17:01:37 +0000] [10] [INFO] Booting …Run Code Online (Sandbox Code Playgroud)