R
Railway10mo ago
Crspy

Connect one deployment to the volume on another deployment

Is there a way to link one of the following templates to a volume attached to a separate deployment on the same project? https://railway.app/template/guiCBv https://railway.app/template/Nan7Bs
Solution:
it's not currently possible
Jump to solution
19 Replies
Percy
Percy10mo ago
Project ID: dfc8d88b-459f-4ec8-9e35-824c0bc7fbc0
Crspy
CrspyOP10mo ago
dfc8d88b-459f-4ec8-9e35-824c0bc7fbc0 Or access the volume on another deployment from the deployed code in a separate deployment? I need to store data that is persistent accross redeployments, and I would like to be able to use those templates to upload and or download the files.
Solution
Brody
Brody10mo ago
it's not currently possible
Brody
Brody10mo ago
what kind of files? maybe I have an applicable alternative for you
Crspy
CrspyOP10mo ago
the sqlite database you helped me setup yesterday in <#1208565033987080202>. I would just like to be able to download it in case I later decide to no longer use railway.app but I guess I could just unpair the volume from my server and then repair it to the template?
Brody
Brody10mo ago
ah then you've have to do the dance of unmounting and remounting yeah exactly
Crspy
CrspyOP10mo ago
ok just wanted to see if there was an easier, less manual way to do it
Brody
Brody10mo ago
there is, use postgres
Crspy
CrspyOP10mo ago
I was looking into using postgres, but it took 500ms of extra time to run queries
Brody
Brody10mo ago
I can't see that happening when you are on railway using the private network
Crspy
CrspyOP10mo ago
ohh I never tried on railway using the private network just locally on my laptop let me test it on railway quickly
Brody
Brody10mo ago
make sure you use the private url
Crspy
CrspyOP10mo ago
would I just replace the postgres url with postgres.railway.internal
Crspy
CrspyOP10mo ago
or this thing
No description
Brody
Brody10mo ago
use the provided private url please
Crspy
CrspyOP10mo ago
im not seeing it
Brody
Brody10mo ago
its in the variables tab
Crspy
CrspyOP10mo ago
ohh ok i see it now testing it rn wow made everything so much easier. Thanks
Brody
Brody10mo ago
sure does
Want results from more Discord servers?
Add your server