Is there anyway to pull github lfs files into railway

jdelisacfcHOBBY

10 months ago

Currently I am facing the issue of having a large .pkl file that I need to be imported into railway in order for my application to run. I tracked the file using git lfs in order to push it to my repository and now I am having trouble getting the .pkl into railway. Is there anyway to do this? Thank you so much and any help is appreciated!

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

4 Replies

10 months ago

Hey there, there isn't any way to have Railway pull files from GIT LFS.

Instead you would want to deploy the filebrowser template and upload the file to a volume, then move that volume to your service to then read the file off the volume.


jdelisacfcHOBBY

10 months ago

Thank you so much for the response! Do you have any tips on how to read the file off the volume and would you recommend running locally using railway due to this added connection?


10 months ago

As volumes are simply disk mounts you would read the files how you would normally in your language of choice.

I'm sorry, running what locally?


jdelisacfcHOBBY

10 months ago

All good I can go in more depth, I am currently creating a flask/python web app and I am running the application locally right now in vscode. When I update the script in order to read from the volumes what would you say is the best way to continue to test the web app locally before pushing it to railway?


Is there anyway to pull github lfs files into railway - Railway Help Station