R
Railway•7mo ago
jeff

staging a volume with some existing data

im wanting to create a new project on railway. but it has an "uploads" folder with a bunch of data i need to put in it for the pp to work. I can see that raiwlay has volumes. but i can't see a way that i can easily copy files in or out of the volumes. is there any best practice here? any guides/blogs/articles you can link me to? or do i need to rework the appication to use s3 or similar before putting on railway?
Solution:
- deploy this template with USE_VOLUME_ROOT=1 - https://railway.app/template/Nan7Bs - upload your data - unmount its volume and mount it to your desired service...
Jump to solution
23 Replies
Percy
Percy•7mo ago
Project ID: N/A
jeff
jeffOP•7mo ago
N/A
Solution
Brody
Brody•7mo ago
- deploy this template with USE_VOLUME_ROOT=1 - https://railway.app/template/Nan7Bs - upload your data - unmount its volume and mount it to your desired service
jeff
jeffOP•7mo ago
you should see what i was googling. thanks 🙂
Brody
Brody•7mo ago
haha i can imagine
jeff
jeffOP•7mo ago
so i can only mount 1 volume per service?
Brody
Brody•7mo ago
correct
Jack
Jack•7mo ago
:SoonTM:
jeff
jeffOP•7mo ago
perfect!
Brody
Brody•7mo ago
it's an inside joke meaning it's planned but it's not going to actually be soon
jeff
jeffOP•7mo ago
oh hence the TM
Brody
Brody•7mo ago
yep
jeff
jeffOP•7mo ago
so this fileborwser template you shared. this looks like it just supports downloads only? or am i missing something? my problem is probably more-so staging the data onto the volume rather than retrieving it.
Brody
Brody•7mo ago
you can upload files, what makes you think you can't?
jeff
jeffOP•7mo ago
there doesn't seem to be any UI for it.
jeff
jeffOP•7mo ago
No description
Brody
Brody•7mo ago
you deployed the wrong template
jeff
jeffOP•7mo ago
ah... your filebrowser sort of worked but it was way too slow for me. what i ended up doing was building a docker image with wetty in it. (FROM --platform=amd64 wettyoss/wetty), then making a pretty large docker image with all my assets in it. then mounting the volume and using the web interface to manipulate the files and get them onto the railway volume. this worked pretty well, incase it will help any other users, this is what i did.
Brody
Brody•7mo ago
it's only limited by your internet upload speed also, I wouldn't use wetty as that could be seen as a virtual desktop and that's not allowed on railway
jeff
jeffOP•7mo ago
i have gigabit, and transferring 100k small files via that UI was going to take days. where as packaging up a 10GB docker image is just a few mins. I only temporarily needed to use it. im not really sure you would classify it as virtual desktop / vnc etc. its a nodejs application no x server / desktop at all. https://github.com/butlerx/wetty
GitHub
GitHub - butlerx/wetty: Terminal in browser over http/https. (Ajaxt...
Terminal in browser over http/https. (Ajaxterm/Anyterm alternative, but much better) - butlerx/wetty
Brody
Brody•7mo ago
I'm just saying, there's a reason railway doesn't offer ssh you could bulk upload? you didn't have to do one by one files
jeff
jeffOP•7mo ago
i dunno what to say. its really slow it doesnt run them in parallel. drag and drop multiple folders. not doing them one by one. anyhow, we got there in the end.
Brody
Brody•7mo ago
fair enough
Want results from more Discord servers?
Add your server