R
Railway11mo ago
timoteo

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
Percy
Percy11mo ago
Project ID: ab6b3d15-12f4-4d76-8606-42a28a01fe6f
timoteo
timoteoOP11mo ago
this is my project id ab6b3d15-12f4-4d76-8606-42a28a01fe6f
Brody
Brody11mo ago
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
timoteo
timoteoOP11mo ago
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'"
Brody
Brody11mo ago
please read this section of the docs https://docs.railway.app/guides/volumes#relative-paths
Want results from more Discord servers?
Add your server