简体   繁体   English

角度通用项目中谷歌云平台的文件限制

[英]files limit in google cloud platform in angular universal project

Well, I am trying to follow some tutorial to deploy an Universal Angular project on google cloud platform. 好吧,我正在尝试按照一些教程在Google云平台上部署Universal Angular项目。

The project work fine on local < it's just an empty Universal Angular project >. 该项目在本地工作正常<它只是一个空的Universal Angular项目>。

So I try deploy it on google cloud app engine using: 所以我尝试使用以下方法在谷歌云应用引擎上部署它:

gcloud app deploy

Here come the puzzle part: It gives me an error: ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: This deployment has too many files. New versions are limited to 10000 files for this app. - '@type': type.googleapis.com/google.rpc.BadRequest fieldViolations: - description: This deployment has too many files. New versions are limited to 10000 files for this app. field: version.deployment.files[...] 这里有一个难题部分:它给了我一个错误: ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: This deployment has too many files. New versions are limited to 10000 files for this app. - '@type': type.googleapis.com/google.rpc.BadRequest fieldViolations: - description: This deployment has too many files. New versions are limited to 10000 files for this app. field: version.deployment.files[...] ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: This deployment has too many files. New versions are limited to 10000 files for this app. - '@type': type.googleapis.com/google.rpc.BadRequest fieldViolations: - description: This deployment has too many files. New versions are limited to 10000 files for this app. field: version.deployment.files[...] ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: This deployment has too many files. New versions are limited to 10000 files for this app. - '@type': type.googleapis.com/google.rpc.BadRequest fieldViolations: - description: This deployment has too many files. New versions are limited to 10000 files for this app. field: version.deployment.files[...] Well, I am using the free plan from google: ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: This deployment has too many files. New versions are limited to 10000 files for this app. - '@type': type.googleapis.com/google.rpc.BadRequest fieldViolations: - description: This deployment has too many files. New versions are limited to 10000 files for this app. field: version.deployment.files[...]嗯,我正在使用谷歌的免费计划:

So my question is: 所以我的问题是:

  • Is the google cloud platform try to upload all the files in the project folder of Universal Angular < which is huges because of node_modules folder> 谷歌云平台是否尝试上传Universal Angular项目文件夹中的所有文件<由于node_modules文件夹而导致的文件夹>
  • Is the google cloud platform limit the number of files to 10000? 谷歌云平台是否将文件数量限制为10000? If so, how could I upload the universal project to google cloud platform? 如果是这样,我怎样才能将通用项目上传到谷歌云平台? Do I have to upgrade my plan? 我必须升级我的计划吗?

Thank you very much for reading the question. 非常感谢你阅读这个问题。

I am assuming this is because your node_modules folder is getting uploaded as well. 我假设这是因为你的node_modules文件夹也上传了。 There is a skip_files option for the app.yaml, which you might need to use to ensure that the node_modules directory isn't getting pushed. app.yaml有一个skip_files选项,您可能需要使用该选项来确保不会推送node_modules目录。

app.yaml docs app.yaml docs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM