Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

missing media files

default discord avatar
mateusz_solecki2 years 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
    2 years ago

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

  • default discord avatar
    mateusz_solecki2 years 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
    2 years ago

    Nice work!!

  • default discord avatar
    kevinfromsmore_753532 years ago
    @568552242618171441

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

  • default discord avatar
    mateusz_solecki2 years ago

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

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.