Web Developer
I have a custom PHP app that logs some data to the /logs folder - it contains many files - one file for each type of log request which stores log info using PHP’s file_put_contents command.
This log folder is not getting pushed to the GitHub repo. But I understand that any change in the girhub repo will re-deploy to the App Platform and will overwrite all files in the filesystem ?
Will be log files be retained or erased ?
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!
Hey there,
The local storage in App Platform is ephemeral. As such those logs would be erased on each deploy. I’d recommend saving those logs to an external file storage service like our Spaces product. Spaces :: How to Store Data in App Platform
Hope that helps! Nate
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.