R
Railway9mo ago
Salman

Gith-lfs files not uploading correctly

I am uploading my app on Railway via github with a subset of my code on github lfs. I get following error on deployment

SyntaxError: invalid syntax
Traceback (most recent call last):
File "app.py", line 16, in <module>
from polyrnn.src.PolygonModel import PolygonModel
File "/app/polyrnn/src/PolygonModel.py", line 1
version https://git-lfs.github.com/spec/v1

SyntaxError: invalid syntax
Traceback (most recent call last):
File "app.py", line 16, in <module>
from polyrnn.src.PolygonModel import PolygonModel
File "/app/polyrnn/src/PolygonModel.py", line 1
version https://git-lfs.github.com/spec/v1
Seems like the piece of code on git-lfs isn't getting uploaded correctly to railyway.app. Do I need to do anything specific to upload part of code/model on git-lfs? Thanks.
7 Replies
Percy
Percy9mo ago
Project ID: N/A
Salman
Salman9mo ago
N/A
Brody
Brody9mo ago
railway does not support git lfs, how big are these files?
Salman
Salman9mo ago
More than 400 MB. Any work arounds for this?
Brody
Brody9mo ago
theres a few i can think of, depending on the nature of these files are they modified during runtime?
Salman
Salman9mo ago
files are static.
Brody
Brody9mo ago
you can deploy this template into your project https://railway.app/template/Nan7Bs then use it to upload the files onto the volume unmount the volume mount the volume to your service that needs the files then you have the files available to your code