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" } }
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" } }
Solution:Jump to solution
change the start command to
gunicorn hartlord.wsgi:application --log-level debug
20 Replies
Project ID:
N/A
Solution
change the start command to
gunicorn hartlord.wsgi:application --log-level debug
project ID: 0ed8b296-3fac-4ea9-b495-e91ebce5c779
done that
the
envs
portion of your railway.json is not valid, use service variables insteadi don't have a service variables now
add them
okay thanks i will im getting Internal Server Error now
enable debug mode so you can get more info
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/
what makes you think the template exists?
cause it working on local host everything was pushed to github
hypothetically if you got this error locally, what would you do to debug it
i will go on my view.py and fix it
yep basically debug this as if you where doing it locally
okay
@Brody thanks all works fine now your the best
💯
awsome!
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
dont worry about it, i appreciate the thought alone ❤️
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
thank you!