R
Railway14mo 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
Percy14mo ago
Project ID: N/A
Salman
SalmanOP14mo ago
N/A
Brody
Brody14mo ago
railway does not support git lfs, how big are these files?
Salman
SalmanOP14mo ago
More than 400 MB. Any work arounds for this?
Brody
Brody14mo ago
theres a few i can think of, depending on the nature of these files are they modified during runtime?
Salman
SalmanOP14mo ago
files are static.
Brody
Brody14mo 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
Want results from more Discord servers?
Add your server