Report this

What is the reason for this report?

How to prevent redeployment in a monorepo?

Posted on May 31, 2021

Hi everyone,

I have a Node based backend app deployed on the App platform. This app is located in a monorepo together with my frontend. Currently when any files are changed and pushed in the frontend directory, the backend will also redeploy.

My ideal situation would be that the backend will recognize that there are no file changes in the backend directory, and therefore not redeploy. This is currently the case for my frontend on Netlify, is something similar possible on Digital Ocean?



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.

Hello @lem0ndragon ,

From looking at the use case, when the frontend and backend are linked to single app spec then any changes will redeploy entire app. If there is no changes in build specs, then the build will be skipped however deployment will happen. Currently, there is no way to deploy only one component however this is something you can suggest in ideas page for our team to review it.

https://ideas.digitalocean.com/

If either deploy on push feature is enabled for your App or you do manual deployment, it will build the whole App Spec.

Cheers, Sri Charan

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.