Static folder
Hello, how are you? I have a question about how to manage what gets uploaded from my project and what things don't get updated. In my case, due to reasons, my server built in Node is also my own image server. When I make a new deployment, this folder gets deleted, leaving me without images, which causes my application to not work properly. How can I prevent this folder from being touched when I make a new deployment?
5 Replies
Project ID:
ab6b3d15-12f4-4d76-8606-42a28a01fe6f
this is my project id ab6b3d15-12f4-4d76-8606-42a28a01fe6f
you are storing images into the empherial container storage, that is essentially wiped on every deployment, for persistent storage you want to use a volume!
check out this docs page https://docs.railway.app/guides/volumes
hi im sorry i dont now what happend in my Mount path I have "/static", and I try to print the data but I have this error "Error reading directory: Error: ENOENT: no such file or directory, scandir '/app/dist/static'"
please read this section of the docs https://docs.railway.app/guides/volumes#relative-paths