Uploads folder get empty when i deploy
cto-hue
FREEOP

4 months ago

When i build file and push to github each time deployment to railway my files inside uploads folders are getting empty

Solved

1 Replies

Railway
BOT

4 months ago

Each deployment creates a fresh container, so any files written to the filesystem (like an uploads folder) are lost. To persist files across deployments, you need to attach a volume to your service and set the mount path to your uploads directory (e.g., /app/uploads if your app writes to a relative ./uploads path).


Status changed to Awaiting User Response Railway 4 months ago


Railway
BOT

4 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 4 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...