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:Jump to solution
assuming your
staticDir
is set to path.resolve(__dirname, '../../media')
mount the volume to /home/node/app/media
11 Replies
Project ID:
94994a5d-3273-456f-9fab-183aee28c449
project id - 94994a5d-3273-456f-9fab-183aee28c449
try mounting to
/app/media
insteadThe same.
try
/home/node/app
thats what the offical docker compose has the mount point set to
Nope. That broke whole build
well I'm out of ideas
Solution
assuming your
staticDir
is set to path.resolve(__dirname, '../../media')
mount the volume to /home/node/app/media
staticDir = /home/node/app/media
and
disc mounting path = /home/node/app/media
and now it works
Thanks @Brody
no problem 🙂