I have an Express API being served from a webservice. Customers are able to upload files to a directory through my front end. The file upload path is one level up from the git repository directory…or so I think.
I have specified the file upload directory as /opt/render/project/uploads in my code. This works fine.
My git repository runs all my code directly from the root of my repo (I don’t have a subdirectory in the repo), so I assume that Render will also be running all my code at the RENDER_SRC_ROOT which appears to be /opt/render/project/src. On each new deploy it seems that the entire RENDER_PROJECT_ROOT including the director above (/opt/render) get’s completely overwritten.
I don’t want my uploads directory deleted on each new deploy as it doesn’t live in the RENDER_SRC_ROOT. The Render docs, don’t mention anything about this, but is there location in the directory that doesn’t get completely wiped on each new deploy?