R
Railway•16mo 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•16mo ago
Project ID: 94994a5d-3273-456f-9fab-183aee28c449
msolecki
msolecki•16mo ago
project id - 94994a5d-3273-456f-9fab-183aee28c449
Brody
Brody•16mo ago
try mounting to /app/media instead
msolecki
msolecki•16mo ago
The same.
Brody
Brody•16mo ago
try /home/node/app
Brody
Brody•16mo ago
thats what the offical docker compose has the mount point set to
msolecki
msolecki•16mo ago
Nope. That broke whole build
Brody
Brody•16mo ago
well I'm out of ideas
Solution
Brody
Brody•16mo ago
assuming your staticDir is set to path.resolve(__dirname, '../../media') mount the volume to /home/node/app/media
msolecki
msolecki•16mo ago
staticDir = /home/node/app/media and disc mounting path = /home/node/app/media and now it works Thanks @Brody
Brody
Brody•16mo ago
no problem 🙂
Want results from more Discord servers?
Add your server