Deploy Python/Django app
I want to deploy python/django application. i need help to achieve this. thank you.
17 Replies
Project ID:
b61d9b68-cd2d-4438-bfde-b5ea27539898
you're gonna need to provide more info bud. are you stuck? what have you tried? what errors are you getting?
project id: b61d9b68-cd2d-4438-bfde-b5ea27539898
should i post the error log here
yep, cant help without seeing whats going on
Did you set the env in railway for
ENGINE
?No. i dockerized the app.
normally i deploy from terminal.
how are you setting the env in your terminal?
I'm looking into it now
Just abit confused
can i provide you with my docker-compose file, just to take a look.
a docker-compose file wont work here.
You'll need to set the envs in railway following the link above.
Wow. But running a django app here can work?
i mean without dockerizing it
It would if you provided the env vars.
Either you need to set them in some kind of .env Im not sure if django supports that out of the box.
The other option is to set the env vars using the railway website/cli like I said above.
My guess is you're either using a .env file or have the env vars set in that docker-compose file.
Yea, i have the .env file in the application dir. But i have build successfully after setting the env vars.
is the .env commited in git? If not that'll be the issue.
I'd suggest taking the .env and following the link above to set the env in railway.
I have it in the git repo. But i have deployed successfully. I used you first solution.
How do i test the application or start the app?
deploy?