部署具有 .data-00000-of-00001 的 Web 应用程序

Deploy web application that has a .data-00000-of-00001

我有一个 django 项目,基本上是一个 API 的聊天机器人,聊天机器人使用 tensorflow,它使用一个以 .data-00000-of-00001 结尾的超大文件。我不能把它上传到 github 因为它真的很大。任何人都知道如何使用这种文件部署我的 Web 应用程序?

根据您的文件大小,以及您为 Github 购买的计划,有不同的最大文件大小:

https://docs.github.com/en/github/managing-large-files/versioning-large-files/about-git-large-file-storage

Product Maximum file size
GitHub Free 2 GB
GitHub Pro  2 GB
GitHub Team 4 GB
GitHub Enterprise Cloud 5 GB

如果您的文件小于计划的相应最大文件大小,您可以按照此处的说明添加 git-lfs:https://docs.github.com/en/github/managing-large-files/versioning-large-files/installing-git-large-file-storage

然后按照此处的说明配置您的 github 存储库以使用 git-lfs:https://docs.github.com/en/github/managing-large-files/versioning-large-files/configuring-git-large-file-storage

如果您的文件大于此处提到的文件大小,您可能希望通过 Google 的云存储等云服务托管它。