Crash but no Deploy Logs

Hi, I tried uploading my django4 project but it crashes everytime right after it says to have launch successfully. The logs don't provide any insight. " No deployment logs. All output sent to stdout will be displayed here" Any ideas?
17 Replies
Percy
Percy2y ago
Project ID: N/A
Percy
Percy2y ago
⚠️ experimental feature
smilefl0w
smilefl0wOP2y ago
N/A
Brody
Brody2y ago
is there anything in the build log?
smilefl0w
smilefl0wOP2y ago
It seems that all requirements have been loaded. === Successfully Built! === And stuff. Now there is an error after I set debug to false (though there are no Allowed hosts yet. I guess I have to give it the generated link? Error: Operations to perform: Apply all migrations: admin, auth, contenttypes, databank, sessions Running migrations: No migrations to apply. /bin/bash: line 1: gunicorn: command not found
Brody
Brody2y ago
for the allowed hosts array you can use the environment variable RAILWAY_STATIC_URL and for gunicorn not being found, add it to your requirements.txt file
smilefl0w
smilefl0wOP2y ago
Right now the generated link shows a not found http response. The Deploy Logs provide this: Operations to perform: Apply all migrations: admin, auth, contenttypes, databank, sessions Running migrations: No migrations to apply. [2023-03-19 15:24:51 +0000] [1] [INFO] Starting gunicorn 20.1.0 [2023-03-19 15:24:51 +0000] [1] [INFO] Listening at: http://0.0.0.0:6348 (1) [2023-03-19 15:24:51 +0000] [1] [INFO] Using worker: sync [2023-03-19 15:24:51 +0000] [12] [INFO] Booting worker with pid: 12 Where would I find the RAILWAY_STATIC_URL when navigating railway.app?
Brody
Brody2y ago
environment variable RAILWAY_STATIC_URL
you access that environment variable in code sometimes railways proxy is a little slow without a healthcheck, so just refresh, since gunicorn did start and started on the correct host / port
smilefl0w
smilefl0wOP2y ago
Sorry, I'm a bit slow. Completely new to this. I reloaded the page a few times but There is still a "Not Found The requested resource was not found on this server." - Error The RAILWAY_STATIC_URL still goes over my head. I'll have to read into that. Is the Not Found related to that? Right now my settings look like this: DEBUG = False ALLOWED_HOSTS = ["groelle-lagerde-production.up.railway.app"] While the Allowed host is the generated Domain from reailway.app
Brody
Brody2y ago
you don't know what environment variables are? but either way you have manually put the domain in so that would achieve the same result do you have a Procfile?
smilefl0w
smilefl0wOP2y ago
Nope, never heard of that one. If you can point me to a reliable source that explains all necessary steps to deploy a django project on railway I will stop getting on your nerves x)
Brody
Brody2y ago
lol you're not on my nerves dw, I'm here to help, I'm just not well versed in Django and how it works here is the railway provided template for Django, have a look at it's procfile, and settings.py https://github.com/railwayapp-templates/django
smilefl0w
smilefl0wOP2y ago
Hm unfortunately after adding every missing piece from that template it is still giving the not found response.
Brody
Brody2y ago
can you send me the railway domain
smilefl0w
smilefl0wOP2y ago
As in the link that is supposed to link to the website or...? That would be this one: https://groelle-lagerde-production.up.railway.app/
Brody
Brody2y ago
ah cool, so railway is proxing traffic to your app, your app just isn't responding
smilefl0w
smilefl0wOP2y ago
Hmmm
Want results from more Discord servers?
Add your server