R
Railway•2mo ago
rpuls

Need help understanding storage volumes better.

I have added a storage volume to my service, and I set the mount path to /static. After app has finished building the volume is 149mb in the metrics chart. In my node app, I upload some files, but the metric chart doesn't change it still says 149MB - so I think my files aren't ending up in the volume. however, when I try url my-railway.url/static/my-file.png I do see the image i just uploaded. When I redeploy my service, my file is no longer visible in my app UI, nor on url my-rwailway.url/static/my-file.png When I run my project locally, and uploade a file, it is placed in <node-project-root>/static/filename.etx How can I find out where on disc my files are placed on production? Thanks!
Solution:
try mounting to /app/static instead
Jump to solution
4 Replies
Percy
Percy•2mo ago
Project ID: N/A
Solution
Fragly
Fragly•2mo ago
try mounting to /app/static instead
Fragly
Fragly•2mo ago
that'll mount it to the root of your app and not the root of the container
rpuls
rpulsOP•2mo ago
Interesting! giving that a shot right away sick! That indeed did the job 🤩 THX!
Want results from more Discord servers?
Add your server