17 days ago
I lost the attached photos of my records.
How do I recover data from ephemeral file system information? When pushing to GitHub, Railway automatically rebuilt, deleting data from /upload/.
2 Replies
17 days ago
I'm not totally sure what you mean when you say you "lost the attached photos of my records."
Regarding data written to the ephemeral filesystem, it cannot be recovered after a redeploy. Each deployment starts with a fresh filesystem, so any files written at runtime (like your /upload/ directory) are permanently lost when a new deployment is created.
To prevent this in the future, you can attach a Volume to your service, which persists data across deployments. If your app writes to a relative path like ./upload, you would mount the volume at /app/upload.
Status changed to Awaiting User Response Railway • 17 days ago
17 days ago
Oh, wow, that's too bad. My fault for using ************* service.
Status changed to Awaiting Railway Response Railway • 17 days ago
Status changed to Solved sam-a • 17 days ago
