[英]Is there a way to upload large files to github
I am trying to upload my Django application to Github so that I can deploy it to Heroku.我正在尝试将我的 Django 应用程序上传到 Github,以便我可以将其部署到 Heroku。 However, the files are prohibitively large.
但是,这些文件非常大。
I used lfs but even after compression, the upload gets stuck at 99% and later on exhibits a fatal error.我使用了 lfs,但即使在压缩之后,上传也会卡在 99%,后来出现致命错误。
I am using Postgres as my database.我使用 Postgres 作为我的数据库。 I have video files that are about 400mb each in size.My static files are about 300mb each.
我有每个大小约为 400mb 的视频文件。我的 static 文件每个大小约为 300mb。
How do I fix this problem?我该如何解决这个问题?
Don't upload videos on Github.不要在 Github 上上传视频。 Upload videos on media server which served by NGINX or Apache.
在 NGINX 或 Apache 服务的媒体服务器上上传视频。 If you have static files in large size then upload one by one instead of bulk.
如果您有大尺寸的 static 文件,请逐个上传,而不是批量上传。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.