Santosh
Trouble deploying Flask app on separate folder
Hey, so I am new to Railway and I built an app with a Flask backend and a frontend in Svelte and I am facing some issues on deployment from my repo. Here is my repo: https://github.com/ssantoshp/inhouse/tree/main
I am pretty sure there is a way to solve my problem easily but I just tried a bunch of things and none of them really worked well.
So, from my understanding the building should only happen from my
api
folder but when I set "Root directory" to /api
" it seems like I cannot find my html templates from the client
folder.
I think there is something that is missing in what I am doing. I tried setting the "Root directory" to /
and then doing cd api && gunicorn --timeout 300 "main:app" --threads 4
but then the app is unable to build because it doesnt how to build this (the /
directory).
Thanks!133 replies