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