R
Railway17mo ago
novaldev

No such file or directory

I have a storage container mounted to my app under "/storage". I'm just trying to figure out what path I should be trying to access from in my app since "/storage" itself or "./storage" doesn't seem to do the trick. Thanks
Solution:
When you deploy an application it goes into /app/<application_code> by default. I have found success with mounting my volumes to /app/<volume_mount_point> as your application has all the permissions it needs in that folder
Jump to solution
11 Replies
Percy
Percy17mo ago
Project ID: 3cfaeb38-a573-484f-93ad-93fd2f8bbb51
novaldev
novaldevOP17mo ago
3cfaeb38-a573-484f-93ad-93fd2f8bbb51
Solution
MantisInABox
MantisInABox17mo ago
When you deploy an application it goes into /app/<application_code> by default. I have found success with mounting my volumes to /app/<volume_mount_point> as your application has all the permissions it needs in that folder
MantisInABox
MantisInABox17mo ago
What language are you using for your project?
novaldev
novaldevOP17mo ago
It's an ExpressJS project Do you mean I should write "/app/storage" as the custom mount point? Or is that the default when it is set to "/storage"?
MantisInABox
MantisInABox17mo ago
I would use /app/storage as the mount point in your volume settings, and see if that helps. I believe just putting /storage mounts it to the root folder of the container, not our apps. At least that’s what I’ve had to do for a few projects now
novaldev
novaldevOP17mo ago
I've given it a try and it seems to disagree once deployed
novaldev
novaldevOP17mo ago
That's the result of this change:
MantisInABox
MantisInABox17mo ago
Thank you. I can do some more testing with this a bit later today to see what the deal is.
novaldev
novaldevOP17mo ago
Thank you! Solved it. Interestingly the same /app/storage mounting point ended up magically working so I don't know why it was an issue before. Thanks for your help
MantisInABox
MantisInABox17mo ago
Awesome! Glad it’s working
Want results from more Discord servers?
Add your server