staging a volume with some existing data
digitalcraft
PROOP

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

digitalcraft
PROOP

2 years ago

N/A


brody
EMPLOYEE

2 years ago

  • deploy this template with USE_VOLUME_ROOT=1 -

  • upload your data

  • unmount its volume and mount it to your desired service


digitalcraft
PROOP

2 years ago

you should see what i was googling. thanks 🙂


brody
EMPLOYEE

2 years ago

haha i can imagine


digitalcraft
PROOP

2 years ago

so i can only mount 1 volume per service?


brody
EMPLOYEE

2 years ago

correct


jack
PRO

2 years ago

<:SoonTM:708043380302544987>


digitalcraft
PROOP

2 years ago

perfect!


brody
EMPLOYEE

2 years ago

it's an inside joke meaning it's planned but it's not going to actually be soon


digitalcraft
PROOP

2 years ago

oh hence the TM


brody
EMPLOYEE

2 years ago

yep


digitalcraft
PROOP

2 years 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
EMPLOYEE

2 years ago

you can upload files, what makes you think you can't?


digitalcraft
PROOP

2 years ago

there doesn't seem to be any UI for it.


digitalcraft
PROOP

2 years ago

1240503128483303400


brody
EMPLOYEE

2 years ago

you deployed the wrong template


digitalcraft
PROOP

2 years ago

ah…


digitalcraft
PROOP

2 years ago

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
EMPLOYEE

2 years ago

it's only limited by your internet upload speed


brody
EMPLOYEE

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


digitalcraft
PROOP

2 years 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


brody
EMPLOYEE

2 years ago

I'm just saying, there's a reason railway doesn't offer ssh


brody
EMPLOYEE

2 years ago

you could bulk upload? you didn't have to do one by one files


digitalcraft
PROOP

2 years 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
EMPLOYEE

2 years ago

fair enough


Loading...