Hi,
I am using DO App Platform for hosting a .net core web-application. This application uses a .xml-file to preserve the state of some encrypted keys between releases.
If this file is not persisted between releases, all users will be logged out, tokens will be invalid, and so on.
When hosting on a VM, you can put this file on a volume/disk and persist it that way, and on Docker you can persist it on a volume between releases.
Is there any options to persist a file between releases on App Platform? Or is the entire “Apps” recycled between releases?
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!
App Platform apps are hosted in containers, because of this the filesystem is completely ephemeral, so in between releases all data stored in files will be lost.
We are planning to support attaching volumes to apps for persistent filesystems in the future. I don’t have a public timeline on this feature.
If this file is static you could inject it into one of our environment variables then save it to disk as part of the build command. I’ve done this in the passed with certificates.
For example:
// assuming a App Platform environment variable
// called MY_CERTIFICATE exists.
echo "${MY_CERTIFICATE}" > app-certificate.cert
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.