Hi, is there any possibility to replace just a few files on server directly instead of deploying a new repo from Github?
Code updates need a deploy. This has the benefit of your code matching your GitHub repo, so you can track what’s deployed
This is also required because 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, manual restart, etc.). So changing a few lines of a file on a running instance, wouldn’t persist beyond the next restart.
Thanks for a reply
quoted sentence is only applicable for the free account but when it is paid a new single file stays on the server?
No, any restart of the container would apply, not just on free. Whether that’s a new deploy, an underlying hardware issue, a crash, anything that restarts the container would drop any new files on the runtime created since boot.
If you want to change code, do it in git and deploy.
If you want to persist files (e.g user uploads, generated files, etc.) you’ll need to have a persistent store, e.g. a Render Disk (which is chargeable and also requires a paid instance type) or an external service like AWS S3.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.