2 years ago
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?
25 Replies
2 years ago
deploy this template with
USE_VOLUME_ROOT=1-upload your data
unmount its volume and mount it to your desired service
2 years ago
haha i can imagine
2 years ago
correct
2 years ago
<:SoonTM:708043380302544987>
2 years ago
it's an inside joke meaning it's planned but it's not going to actually be soon
2 years ago
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.
2 years ago
you can upload files, what makes you think you can't?
2 years ago
you deployed the wrong template
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.
2 years ago
it's only limited by your internet upload speed
2 years ago
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
2 years ago
I'm just saying, there's a reason railway doesn't offer ssh
2 years ago
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.
2 years ago
fair enough
