Question

Why does App platform frequently re-deploy?

Hi, Once in a while I check my static and Golang app running on DO app platform and it appears that they usually rebuild once a day or something? What could be the reason behind this? I was planning on saving keys to a hash map for batch insert into my database, but that wouldn’t be possible if the server unpredictably redeploys once in a while.


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.

👋 @Jellybean82

App Platform does not redeploy apps on a schedule. There are several triggers that can cause redeploys:

  • If deploy on push is enabled, we will deploy everytime a commit is pushed to the selected branch
  • If the deploy button is pressed
  • If the App spec changes (eg. adding an environment variable in the UI)
  • On App Platform maintenance

Regarding the last point, if an App Platform app is on a node that goes down, or the cluster is having issues we will automatically deploy another version and transfer traffic to that new instance. This is how we keep your app up during outages, hardware failure, and big storms.

Because of this it is not recommended to store any state that is not easily recreatable. If the keys you mentioned are easily reproducible then it shouldn’t be a problem but that would need to be built into the logic of your app.

We are looking at adding attached volumes that will persist between app deploys in the future, though I don’t have a timeline on that.