Django website, no errors not deploying

No description
Solution:
Hey @Brody , site is up and running. A lot of issues were present, gunicorn solved the major one.
Jump to solution
68 Replies
Percy
Percy11mo ago
Project ID: d58cc218-0ee6-41d9-b312-617ba2a850da
Brody
Brody11mo ago
the cropped screenshot isnt doing you any good, please re-send without a crop
parpsyche
parpsycheOP11mo ago
d58cc218-0ee6-41d9-b312-617ba2a850da
Brody
Brody11mo ago
^
parpsyche
parpsycheOP11mo ago
Here @Brody the complete logs
maddsua
maddsua11mo ago
just to be clear, that's a dev server you're running there, right?
parpsyche
parpsycheOP11mo ago
yes
maddsua
maddsua11mo ago
welp, not gonna fly you need to build that site for production
parpsyche
parpsycheOP11mo ago
bruhh, atleast show me something on the frontend. even an error would do
Brody
Brody11mo ago
madhdsua, its django, theres no "building" involved
maddsua
maddsua11mo ago
damn im out then sorry for the confusion lmao
Brody
Brody11mo ago
this isnt an issue with railway, its an issue with how you have configured your project. please share your repo so we can advise further
parpsyche
parpsycheOP11mo ago
no problem man, thanks for trying you want to get on a call? if it is fine for you?
Brody
Brody11mo ago
no i dont think this requires a call, please share your repo
parpsyche
parpsycheOP11mo ago
GitHub
GitHub - parpsyche/vintage_sales
Contribute to parpsyche/vintage_sales development by creating an account on GitHub.
Brody
Brody11mo ago
Brody
Brody11mo ago
do you have a start command in the service settings set? if so, remove it
parpsyche
parpsycheOP11mo ago
okay testing with it
Brody
Brody11mo ago
what? did you have one?
parpsyche
parpsycheOP11mo ago
yes python manage.py runserver 0.0.0.0:8000
Brody
Brody11mo ago
remove it
parpsyche
parpsycheOP11mo ago
now no deploy logs only this
Brody
Brody11mo ago
whats the state of the deployment say?
parpsyche
parpsycheOP11mo ago
https://vintagesales.up.railway.app/ as in the url? successful no failure
Brody
Brody11mo ago
im asking for the deployment state as seen in railway, not from your url
parpsyche
parpsycheOP11mo ago
Success
No description
Brody
Brody11mo ago
green doesnt always mean success, there are other green states, like "COMPLETED" please send the deployment logs
parpsyche
parpsycheOP11mo ago
No description
parpsyche
parpsycheOP11mo ago
Completed with empty deployment logs
Brody
Brody11mo ago
what is your build command set to
parpsyche
parpsycheOP11mo ago
empty, default picks the dockerfile
Brody
Brody11mo ago
from your Procfile your start command is gunicorn vintage_sales_scraping.wsgi but you dont have a wsgi component in the /vintage_sales_scraping folder
parpsyche
parpsycheOP11mo ago
creating at testing
Brody
Brody11mo ago
what would be the correct start command to start your app via gunicorn?
parpsyche
parpsycheOP11mo ago
python manage.py runserver
Brody
Brody11mo ago
no that starts a development server via gunicorn is this a django site, or a celery worker, or both?
parpsyche
parpsycheOP11mo ago
not sure, figuring that out just a django site, would need a celery thing too
Brody
Brody11mo ago
where is the wsgi.py file in this repo? or even the settings.py file
parpsyche
parpsycheOP11mo ago
not present, created one rn config.settings pushed wsgi gunicorn vintage_sales_scraping.wsgi would be the command I am sleeping rn, literally mind fucked. Will approach this maybe tomorrow. Thanks for your help though, let me know if you find anything
Brody
Brody11mo ago
okay let me know when you are back working on this
parpsyche
parpsycheOP11mo ago
heyooo, I am back. Update, I tried deploying another app but it still didn't load up. Same thing, no errors doesn't launch
Brody
Brody11mo ago
send the link to the site please?
Brody
Brody11mo ago
"Nothing here... yet"
parpsyche
parpsycheOP11mo ago
exactly, can't see anything. Need help with this
Brody
Brody11mo ago
how long ago did you generate that domain?
parpsyche
parpsycheOP11mo ago
probably an hour If you need, I can join on a call to explain the issue.
Brody
Brody11mo ago
show me the domain as displayed in the service settings please (screenshot)
parpsyche
parpsycheOP11mo ago
No description
Brody
Brody11mo ago
thats not the same domain you sent above?
parpsyche
parpsycheOP11mo ago
ohh wait, Idk what did I copy sorry about that https://temp-production-0575.up.railway.app/
Brody
Brody11mo ago
deploy logs please
parpsyche
parpsycheOP11mo ago
here @Brody
Brody
Brody11mo ago
my bad you are still trying to start a development server, you need to use gunicorn to start your django app
parpsyche
parpsycheOP11mo ago
Do I need to enter a custom start command?
Brody
Brody11mo ago
you would need to use gunicorn in your start command
parpsyche
parpsycheOP11mo ago
okay trying. Will get back to you
Solution
parpsyche
parpsyche11mo ago
Hey @Brody , site is up and running. A lot of issues were present, gunicorn solved the major one.
parpsyche
parpsycheOP11mo ago
Thanks alot man.
Brody
Brody11mo ago
awesome, glad I could be of some help!
parpsyche
parpsycheOP11mo ago
Also I wanted to know, how can I contribute to this community? I don't have much free time but would love to contribute whenever possible
Brody
Brody11mo ago
answer some help threads! if you can get to them before me! 🤣
parpsyche
parpsycheOP11mo ago
lol sure Thanks again man ❤️
Brody
Brody11mo ago
no problem!!
Want results from more Discord servers?
Add your server