Report this

What is the reason for this report?

Why does App platform frequently re-deploy?

Posted on December 14, 2020

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.



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.

👋 @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.

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.