Question

Django + React App Deployment using App Platform in one App

Connected Tutorial
This question is a follow-up to this tutorial:

Hello, I’m building a web application based on Django + react in one project (Single Repo) with backend and frontend folder in it, when I tried to deploy repo which have both app it’s not deploying in Digital Ocean App platform and getting error that Repository not found. So how can I deploy one repo app (Backend (Django) + frontend (React)) on Digital Ocean App Platform. I could see there is solution to deploy both app as separate, but looking for solution if I can deploy single app through App platform?

Thanks in advance!


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @UpgradeYourLogic,

The error Repository not found states that our build system did not find any files to build the app. From your description, it appears there are multiple folders(backend + frontend) in your repo which would be used for deployment. You should use the Source Directory option to choose the appropriate folder while deploying the app. You could first deploy the frontend and then add the backend as a component to the app in a similar fashion.

You could refer the mentioned link for the same.

In case you still see issues, please feel free to reach out to our Support team and we would be glad to help you out!

Cheers, Taha Fatima