Hi all,
I’ve created new app (and it’s publicly available as GitHub repo), but the problem is that creating app from GitHub repo doesnt work in my case somehow: while at Create Resource From Source Code
page, selecting Github as service provider + repo name + source dir as /
leads to no component detected
.
In general, root dir of repo consists only of 3 elements: README
, /frontend
and /backend
. I start frontend app (nodeJS + Svelte) via cd frontend && npm run dev
(being in /
dir), and backend app (Python + FastAPI, Dockerfile + Docker-compose, K8s is also used, reqs.txt available) via cd backend && docker-compose up --build
(also being in /
dir).
I tried setting source dir to /frontend
/ /backend
: it helps, but detects either of apps, not both.
It seems like I’m doing something completely wrong, hence the question: how do I deploy a project, service provider of which is GitHub, with multiple apps inside?
===
If I’ve missed some tutorial covering this case - sorry for that, just drop a link :)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey there!
Is this regarding the DigitalOcean App Platform? If so, since your frontend is a Node.js app, you’ll need to set up a separate service for it:
/frontend
.Next, we’ll set up the backend (Python + FastAPI) as a separate service:
/backend
./api
).Make sure that the backend service is on a different route than the frontend service. For example, you can set the backend service to
/api
and the frontend service to/
. This way, the frontend will be served from the root URL, and the backend will be served from/api
. And your frontend can make API calls to the backend using the/api
route prefix.Let me know if you run into any issues or need further help with the configuration.
- Bobby