a year ago
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 /static/filename.etx
How can I find out where on disc my files are placed on production?
Thanks!
5 Replies
a year ago
try mounting to /app/static instead
a year ago
that'll mount it to the root of your app and not the root of the container
a year ago
Interesting! giving that a shot right away
a year ago
sick! That indeed did the job 🤩
a year ago
THX!