Volume root directory?
Hello, I am running an express server with a persistent volume attached to it, unfortunately nothing is saved when i redeployed. I thought it might be because I had to specify the root directory of my service in the volume's mount path but that did not help either. I have tried
/public
and /server-api/public
and both dont do anything.
I have to mention that my files are actually stored in subfolders of the public directory, I am assuming storage is recursive.
Also another mention is that my public folder does not exist when I first run the app, it only gets created once I upload my first file to the server.5 Replies
Project ID:
6f8fa646-b91e-4b1d-b8fa-c8e573eed3cb
6f8fa646-b91e-4b1d-b8fa-c8e573eed3cb
Seems to be working if i set the mount path to
app/<my_folder>
Ill leave this open until acknowledged as it can help maybe in the documentationthe apps run from a
/app
folder within the container, this is where all the user code would live so yeah if you wanted to save files to public
(note I didn't use a path with a slash prefix) then mounting to /app/public
is what you'd needah so removing the slash would've worked?
if I understand what you where saying correctly, yes