R
Railway9mo 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
Percy9mo ago
Project ID: dfc8d88b-459f-4ec8-9e35-824c0bc7fbc0
Crspy
Crspy9mo 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
Brody9mo ago
it's not currently possible
Brody
Brody9mo ago
what kind of files? maybe I have an applicable alternative for you
Crspy
Crspy9mo 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
Brody9mo ago
ah then you've have to do the dance of unmounting and remounting yeah exactly
Crspy
Crspy9mo ago
ok just wanted to see if there was an easier, less manual way to do it
Brody
Brody9mo ago
there is, use postgres
Crspy
Crspy9mo ago
I was looking into using postgres, but it took 500ms of extra time to run queries
Brody
Brody9mo ago
I can't see that happening when you are on railway using the private network
Crspy
Crspy9mo ago
ohh I never tried on railway using the private network just locally on my laptop let me test it on railway quickly
Brody
Brody9mo ago
make sure you use the private url
Crspy
Crspy9mo ago
would I just replace the postgres url with postgres.railway.internal
Crspy
Crspy9mo ago
or this thing
No description
Brody
Brody9mo ago
use the provided private url please
Crspy
Crspy9mo ago
im not seeing it
Brody
Brody9mo ago
its in the variables tab
Crspy
Crspy9mo ago
ohh ok i see it now testing it rn wow made everything so much easier. Thanks
Brody
Brody9mo ago
sure does
Want results from more Discord servers?
Add your server