R
Railway•17mo ago
msolecki

paylaodcms + volume = not works

I have dockerfile payload config on railway app, but every deployment clean media files. Any idea why ? I also have volume for that mapped for /media so should works ?
Solution:
assuming your staticDir is set to path.resolve(__dirname, '../../media') mount the volume to /home/node/app/media
Jump to solution
11 Replies
Percy
Percy•17mo ago
Project ID: 94994a5d-3273-456f-9fab-183aee28c449
msolecki
msoleckiOP•17mo ago
project id - 94994a5d-3273-456f-9fab-183aee28c449
Brody
Brody•17mo ago
try mounting to /app/media instead
msolecki
msoleckiOP•17mo ago
The same.
Brody
Brody•17mo ago
try /home/node/app
Brody
Brody•17mo ago
thats what the offical docker compose has the mount point set to
msolecki
msoleckiOP•17mo ago
Nope. That broke whole build
Brody
Brody•17mo ago
well I'm out of ideas
Solution
Brody
Brody•17mo ago
assuming your staticDir is set to path.resolve(__dirname, '../../media') mount the volume to /home/node/app/media
msolecki
msoleckiOP•17mo ago
staticDir = /home/node/app/media and disc mounting path = /home/node/app/media and now it works Thanks @Brody
Brody
Brody•17mo ago
no problem 🙂
Want results from more Discord servers?
Add your server