Hello!
This is a puzzle I can't seem to solve.
I have a django project that runs fine locally in Debug mode.
I tried to deploy it to dokku (on a remote VM), and all I get is Error 500. I followed the usual tutorials but something's wrong, and I have no idea what it is.
I tried to set Debug to True on the remote, and... it works. So at least, the issue is only present in production mode and not related to server or database configuration.
The code can be found here: https://github.com/PliskinGH/RootLeague
(settings.py in particular : https://github.com/PliskinGH/RootLeague/blob/master/RootLeagueProject/settings.py)
In the logs given by dokku, I don't get anything useful:
2024-06-30T19:54:54.088472431Z app[web.1]: Python buildpack: Couldn't determine available memory. Skipping automatic configuration of WEB_CONCURRENCY. 2024-06-30T19:55:00.580110348Z app[web.1]: [2024-06-30 19:55:00 +0000] [13] [INFO] Starting gunicorn 22.0.0 2024-06-30T19:55:00.583053020Z app[web.1]: [2024-06-30 19:55:00 +0000] [13] [INFO] Listening at: http://0.0.0.0:5000 (13) 2024-06-30T19:55:00.583255421Z app[web.1]: [2024-06-30 19:55:00 +0000] [13] [INFO] Using worker: sync 2024-06-30T19:55:00.590341746Z app[web.1]: [2024-06-30 19:55:00 +0000] [156] [INFO] Booting worker with pid: 156 2024-06-30T19:57:35.252764612Z app[web.1]: 172.17.0.1 - - [30/Jun/2024:19:57:35 +0000] "GET / HTTP/1.1" 500 145 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" 2024-06-30T19:57:35.483967561Z app[web.1]: 172.17.0.1 - - [30/Jun/2024:19:57:35 +0000] "GET /favicon.ico HTTP/1.1" 404 179 "http://35.184.136.225/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
If anyone has any idea about what's happening, I'd appreciate the help.
Thanks!