Application failed to respond

my django web app deployed without any errors trying to view it and im getting this error and worked fine on local host im a beginner and new to railway any help please
here is my { "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "NIXPACKS", "nixpacksPlan": { "providers": ["python"], "phases": { "setup": { "nixPkgs": ["python39", "nodejs"], "buildCommand": [ "pip install -r requirements.txt", "npm install", "python manage.py migrate", "python manage.py collectstatic --noinput" ] } } } }, "deploy": { "runtime": "UNSPECIFIED", "numReplicas": 1, "startCommand": "gunicorn hartlord.wsgi:application --bind 0.0.0.0:8000 --log-level debug", "sleepApplication": false, "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 10 }, "envs": { "DJANGO_SECRET_KEY": "@django_secret_key", "DJANGO_DEBUG": "False" } }
No description
Solution:
change the start command to gunicorn hartlord.wsgi:application --log-level debug
Jump to solution
20 Replies
Percy
Percy6mo ago
Project ID: N/A
Solution
Brody
Brody6mo ago
change the start command to gunicorn hartlord.wsgi:application --log-level debug
hartlord
hartlordOP6mo ago
project ID: 0ed8b296-3fac-4ea9-b495-e91ebce5c779 done that
Brody
Brody6mo ago
the envs portion of your railway.json is not valid, use service variables instead
hartlord
hartlordOP6mo ago
i don't have a service variables now
Brody
Brody6mo ago
add them
hartlord
hartlordOP6mo ago
okay thanks i will im getting Internal Server Error now
Brody
Brody6mo ago
enable debug mode so you can get more info
hartlord
hartlordOP6mo ago
OKAY THANKS IM DOING THAT im getting a TemplateDoesNotExist at / web/index.html error and everything works fine on local host https://exciting-charisma-production.up.railway.app/
Brody
Brody6mo ago
what makes you think the template exists?
hartlord
hartlordOP6mo ago
cause it working on local host everything was pushed to github
Brody
Brody6mo ago
hypothetically if you got this error locally, what would you do to debug it
hartlord
hartlordOP6mo ago
i will go on my view.py and fix it
Brody
Brody6mo ago
yep basically debug this as if you where doing it locally
hartlord
hartlordOP6mo ago
okay @Brody thanks all works fine now your the best 💯
Brody
Brody6mo ago
awsome!
hartlord
hartlordOP6mo ago
will use your buy a coffe site to gift you something thanks cant do that today im from nigeria my debit card dont work i will order for a visa prepaid card and do it thanks so much
Brody
Brody6mo ago
dont worry about it, i appreciate the thought alone ❤️
hartlord
hartlordOP6mo ago
okay thanks but i will still do it your a great person reply me fast and i got answers to my errors thanks i really appreciate the kindness
Brody
Brody6mo ago
thank you!
Want results from more Discord servers?
Add your server