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:Jump to 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...23 Replies
Project ID:
N/A
N/A
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 serviceyou should see what i was googling. thanks 🙂
haha i can imagine
so i can only mount 1 volume per service?
correct
:SoonTM:
perfect!
it's an inside joke meaning it's planned but it's not going to actually be soon
oh hence the TM
yep
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.
you can upload files, what makes you think you can't?
there doesn't seem to be any UI for it.
you deployed the wrong template
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.
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
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
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
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.
fair enough