Deploy Python/Django app

I want to deploy python/django application. i need help to achieve this. thank you.
17 Replies
Percy
Percy2y ago
Project ID: b61d9b68-cd2d-4438-bfde-b5ea27539898
luna
luna2y ago
you're gonna need to provide more info bud. are you stuck? what have you tried? what errors are you getting?
anointedngeorge
project id: b61d9b68-cd2d-4438-bfde-b5ea27539898 should i post the error log here
luna
luna2y ago
yep, cant help without seeing whats going on
luna
luna2y ago
Did you set the env in railway for ENGINE ?
anointedngeorge
No. i dockerized the app. normally i deploy from terminal.
luna
luna2y ago
how are you setting the env in your terminal?
anointedngeorge
I'm looking into it now Just abit confused can i provide you with my docker-compose file, just to take a look.
luna
luna2y ago
a docker-compose file wont work here. You'll need to set the envs in railway following the link above.
anointedngeorge
Wow. But running a django app here can work? i mean without dockerizing it
luna
luna2y ago
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.
anointedngeorge
Yea, i have the .env file in the application dir. But i have build successfully after setting the env vars.
luna
luna2y ago
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.
anointedngeorge
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?
luna
luna2y ago
deploy?
Want results from more Discord servers?
Add your server