2 years ago
Each time i commit/deploy a new update all my images urls wont work.Any idea what im doing wrong? it all works fine till i redeploy but only for the user uploads tho. they are being save at /wwwroot/Images and image path is being save as /Images . and my volume path is app/Images. Thanks
8 Replies
2 years ago
2 years ago
https://station-server.railway.app/attachments/att_01j8dd1bf2f5j98p852zh3dqxtsaving images method
2 years ago
Attachments
2 years ago
Attachments
2 years ago
https://station-server.railway.app/attachments/att_01j8dd5rhaepys262qe66jkskghttps://station-server.railway.app/attachments/att_01j8dd6fvaemj8wzemg0hsgvmvvolume mount path and imageurl at mysql.
Status changed to Awaiting User Response Railway • about 2 years ago
2 years ago
If you are saving images into /app/wwwroot/Images then that is the mount point you want to use for your volume too.
2 years ago
Though preferably you would save Images into something like /app/wwwroot/data/Images and mount the volume to /app/wwwroot/data just so that you have a more generalized storage path, meaning adding extra media folders won't require a rewrite in the future.
Status changed to Awaiting Railway Response Railway • about 2 years ago
Status changed to Solved brody • about 2 years ago
