Media deletes after new deployment
When I deploy new commit to railway uploaded media deletes automatically. I also tried to create volume storage
8 Replies
Project ID:
N/A
N/A
You would need to use volumes in order to have any media persist between deployments
Otherwise you are storing the data in an ephemeral storage
Yes I've created volume storage but it still deleting
When I try to access uploaded media after new deployment it returns 404 error
When you save your files, you need to make sure you are saving them to the volume. You can pull the path with the environment variable
RAILWAY_VOLUME_MOUNT_PATH
I will try to save them with
RAILWAY_VOLUME_MOUNT_PATH