a year ago
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": "ONFAILURE", "restartPolicyMaxRetries": 10 }, "envs": { "DJANGOSECRETKEY": "@djangosecretkey", "DJANGODEBUG": "False"
}
}
0 Replies
a year ago
change the start command to gunicorn hartlord.wsgi:application --log-level debug
a year ago
n/a
a year ago
the envs portion of your railway.json is not valid, use service variables instead
a year ago
add them
a year ago
enable debug mode so you can get more info
im getting a TemplateDoesNotExist at /
web/index.html error and everything works fine on local host
a year ago
what makes you think the template exists?
a year ago
hypothetically if you got this error locally, what would you do to debug it
i will go on my view.py and fix it
a year ago
yep basically debug this as if you where doing it locally
a year ago
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
a year ago
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
a year ago
thank you!