I store files in one of the folders, but when I change the repository on github, all files are deleted . I want to make a “.render ignore” file to save one of my folders, and update everything else from github. Is this possible?
Hi,
I’m guessing you mean your code is writing files to the service instance, and a new deploy makes those files disappear. This is expected behavior.
Render instances have an ephemeral filesystem, meaning any file written to the instance after it has booted will be lost when it next restarts (e.g. spun down if on free instance type, next deploy, etc.).
If you want to retain generated or uploaded files on your service, you’ll need to have a persistent store, e.g. a Render Disk (which requires a paid instance type) or an external service like AWS S3.
Alan
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.