R
Railway14mo ago
mahrez

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
Percy
Percy14mo ago
Project ID: 6f8fa646-b91e-4b1d-b8fa-c8e573eed3cb
mahrez
mahrezOP14mo ago
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 documentation
Brody
Brody14mo ago
the 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 need
mahrez
mahrezOP14mo ago
ah so removing the slash would've worked?
Brody
Brody14mo ago
if I understand what you where saying correctly, yes
Want results from more Discord servers?
Add your server