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
Percy
Percy16mo ago
Project ID: N/A
saakashvili(mefe)
saakashvili(mefe)OP16mo ago
N/A
MantisInABox
MantisInABox16mo ago
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
saakashvili(mefe)
saakashvili(mefe)OP16mo ago
Yes I've created volume storage but it still deleting
saakashvili(mefe)
saakashvili(mefe)OP16mo ago
saakashvili(mefe)
saakashvili(mefe)OP16mo ago
When I try to access uploaded media after new deployment it returns 404 error
MantisInABox
MantisInABox16mo ago
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
saakashvili(mefe)
saakashvili(mefe)OP16mo ago
I will try to save them with RAILWAY_VOLUME_MOUNT_PATH
Want results from more Discord servers?
Add your server