问题描述
试图部署我的应用程序时:
appcfg.py更新--oauth2。
我得到:
PM回滚更新。
错误400:---开始服务器输出---
文件和blob的最大数量为10000.
---结束服务器输出---
我该如何解决这个问题?
您可以使用在您的app.yaml中排除一些文件被部署:
skip_files:
- ^(。* /)?#。*#$
- ^(。* /)?。*〜$
- ^(。* /)?。* \.py [co] $
- ^(。* /)?。* / RCS /.*$
- ^(。* /)?\ .. * $
例如,您可能希望排除.readme文件,编译的python文件等。
或者你可以使用并压缩你的python包,它们将被解压到在进口时飞行。
或者,如果您还要上传大量静态资产,请将其放入存储区中,而不是像其他答案所示。
When trying to deploy my application:
appcfg.py update --oauth2 .
I'm getting:
PM Rolling back the update.
Error 400: --- begin server output ---
Max number of files and blobs is 10000.
--- end server output ---
How do I solve this?
You "solve" it by having less files deployed when you deploy your project. You have a few choices.
You can use Skipfiles in your app.yaml to exclude some files from being deployed:
skip_files:
- ^(.*/)?#.*#$
- ^(.*/)?.*~$
- ^(.*/)?.*\.py[co]$
- ^(.*/)?.*/RCS/.*$
- ^(.*/)?\..*$
You might want to, for example, exclude .readme files, compiled python files etc.
Or you can use ZipImport and compress your python packages and they will be unzipped on the fly during import.
Or if you are also uploading lots of static assets, put them in a bucket instead as the other answer suggests.
这篇关于达到Google App Engine的最大数量的文件和Blob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!