missing media files

default discord avatar
mateusz_solecki
2 months ago
5

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 ?

  • discord user avatar
    jarrod_not_jared
    Payload Team
    2 months ago

    Did you setup the volume in railway? Or just in your dockerfile

  • default discord avatar
    mateusz_solecki
    2 months ago

    yes, I have volume mounted in railway on /media path. Dockerfile is default



    staticDir = /home/node/app/media


    and


    disc mounting path = /home/node/app/media



    and now it works

  • discord user avatar
    jarrod_not_jared
    Payload Team
    2 months ago

    Nice work!!

  • default discord avatar
    kevinfromsmore_75353
    3 weeks ago

    @mateusz_solecki can you elaborate on your solution? I'm having the same issue.

  • default discord avatar
    mateusz_solecki
    3 weeks ago

    as above, proper setting for media path on railway and payload config

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.