[英]Google App Engine Flexible environment deployment failed using Google Cloud SDK from WINDOWS OS 10
我的生產站點在 CodeIgniter 框架下開發,文件超過 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 失敗,因為部署有太多 PHP CodeIgnitor 文件的文件
gcloud app deploy:此部署有太多文件克服 Google App Engine 上 10000 個文件限制的方法?
我按照以下啟用了.gcloudignore 文件並在 myproject 中創建
https://cloud.google.com/sdk/gcloud/reference/topic/gcloudignore
如何將在.gitignore 中忽略的文件包含在.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
我當前的雲 SDK 版本是:320.0.0
從版本安裝組件:320.0.0
我找不到解決方案。 為什么突然我的部署失敗了使用 Gcloud SDK 到 GAE 柔性環境(注:我的項目有超過 10 k 的文件,直到上周我沒有得到這個問題)
請幫我解決這個問題,如果我錯過了任何東西,在此先感謝。
看起來 App Engine 部署文件的方式發生了變化。
運行命令gcloud config set app/trigger_build_server_side false
解決了這個問題
現在在 12 月 15 日,此更改似乎已恢復,正常部署應該像以前一樣工作
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.