2 years ago
hello guys
I'm literally about to cry
I have been debugging for 4 days now
I'm trying to host an e-commerce site (food ordering site)
The last one I did
was pretty simple
just HTML AND CSS WITH DJANGO
NOW I switched to React and used Django as backend
and I can't host it
I have been having errors for days now
Please is there any guide for me
to deploy react and django
<#1006629907067064482>
34 Replies
2 years ago
N/A
2 years ago
Were you able to deploy the react app or the django? What errors are shown in your logs?
2 years ago
project id is totally applicable here btw
2 years ago
i have the backend and frontend on diffrent repo in my github
2 years ago
Oh we are crashing at build
2 years ago
yes, i have all the requirement installed
2 years ago
Did u set a start command in the service settings?
2 years ago
nope
2 years ago
You will need to. I suggest finding Railway templates for your desired stack and copy the configuration files from those into your app
2 years ago
I don't know much about Django, but there's a guide on how to deploy a Django app
https://docs.railway.com/guides/django#deploy-django-app-on-railway
2 years ago
2 years ago
Is there a reason why you’re not using django as a frontend? Personally, I don’t like using django as a backend if I’m not also using it as a frontend
2 years ago
I prefer a simple api like flask in my backend
2 years ago
i was trying new things, i used typescript and node.js
2 years ago
some time
2 years ago
i will learn how to flask some day later
2 years ago
thanks man
2 years ago
yo guys thank u @Adam @Medim
very much
i used ur help and deployed it
thanks so much
the site is live
2 years ago
2 years ago
Glad to hear it! Am I good to call this solved?
2 years ago
@Adam is it possible to put my front end repo inside here and the project will still be deployed successfully
2 years ago
yeah! just add a new service
2 years ago
if your backend is already successfully deployed it shouldn't interfere
2 years ago
fr, so i can add the frontend repo inside there
that cool bro
2 years ago
yes its successful, but the frontend is deployed in another project
2 years ago
U should deploy it on the same project as your api so you can benefit from the internal network
2 years ago
thanks man, it worked
2 years ago
God im so happy
2 years ago
nice, were you able to connect your frontend to your backend through the internal network?
2 years ago
that way we prevent some egress fees
2 years ago
will be closing this chat now
thanks to you all
2 years ago
yes man,
2 years ago
dw, I will mark as solved
2 years ago
!s
Status changed to Solved medim • over 1 year ago