How to update files locally

How can I update files locally? Like I want to change a variable in my code, but not on the Github repository.

Hi,

It sounds like you may be asking, how you can change a file on a Render instance. The “Shell” tab would let you do this (requires a paid instance).

However, you’d need to be aware that 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 if you changed a variable in “Shell” it would be lost when the service next restarts.

You either need to make changes in your code, commit and redeploy, or use environment variables (“Environment” tab) and reference those in your code.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.