Google App Engine 灵活环境部署失败,使用来自 WINDOWS OS 10 的 Google Cloud SDK

Google App Engine Flexible environment deployment failed using Google Cloud SDK from WINDOWS OS 10

我的生产站点是用 CodeIgniter Frame 开发的,它有超过 10k 个文件,我上周成功部署了,没有任何问题。今天我的部署失败了,我只是在脚本中更正了一个查询。

我遇到了以下问题

C:\myproject>gcloud app deploy --version 13 app.yaml
Services to deploy:

descriptor:      [C:\myproject\app.yaml]
source:          [C:\myproject]
target project:  [xyz]
target service:  [uat]
target version:  [13]
target url:      [https://uat-dot-xyz.appspot.com]


Do you want to continue (Y/n)?  Y
    Beginning deployment of service [uat]...
    #============================================================#
    #= Uploading 0 files to Google Cloud Storage                =#
    #============================================================#
    File upload done.
    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 帖子

gcloud app deploy failed because deployment has too many files for PHP CodeIgnitor files

我按照下面启用了 .gcloudignore 文件并在我的项目中创建

https://cloud.google.com/sdk/gcloud/reference/topic/gcloudignore

C:\>gcloud config set gcloudignore/enabled true
Updated property [gcloudignore/enabled].

C:\>gcloud config list
[accessibility]
screen_reader = False
[compute]
region = region-name
zone = zone-name
[core]
account = xyz@domainname.com
disable_usage_reporting = True
project = xyz
[gcloudignore]
enabled = true

我当前的 Cloud SDK 版本是:320.0.0

从以下版本安装组件:320.0.0

我找不到解决办法。为什么突然我部署失败使用Gcloud SDK到GAE柔性环境(注意:我的项目有超过10k个文件,直到上周我没有得到这个问题)

Plz,帮我解决这个问题,如果我遗漏了什么, 提前致谢。

App Engine 部署文件的方式似乎发生了变化。

运行 命令 gcloud config set app/trigger_build_server_side false 解决了问题

现在 12 月 15 日似乎恢复了此更改,正常部署应该像以前一样工作