By HardMax71
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!
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
.npm install && npm run build
npm start
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.