版本中的gcloud Google Cloud SDK 0.9.57中断了应用程序的部署

the*_*key 7 google-app-engine gcloud gcloud-cli

截至2015年4月22日,gcloud更新到最新版本会破坏deploy命令.应用程序的版本设置为当前时间戳(例如:20150422t202108).做一个:

gcloud preview app deploy .
Run Code Online (Sandbox Code Playgroud)

返回错误

"ERROR: Directories are not supported [.].  You must provide explicit yaml files."
Run Code Online (Sandbox Code Playgroud)

使用单独的.yaml文件部署应用程序会抱怨模块中指定的版本,因为更新会将应用程序版本设置为时间戳.

"The version [1] declared in [/Users/username/app.yaml, /Users/username/app2.yaml] does not match the current gcloud version [20150422t202108]."
Run Code Online (Sandbox Code Playgroud)

这是一个错误还是配置选项改变了?我在文档页面上找不到任何差异.

Mar*_*ark 6

部署版本现在是显式的,永远不会从您的yaml文件中获取.有两种可能的情况:

1)如果使用--version标志,则使用您指定的任何版本.如果这与yaml文件中的值不匹配,则会出错.

2)如果不使用--version标志,则会为您生成版本号.这是您看到的错误,因为该版本与您的yaml文件中的版本不匹配.

这里适当的解决方案是从你的yaml中删除version属性(而不是试图让它们匹配).

deploy命令现在也不再将目录作为参数.您可以指定要显式部署的yaml文件.