gcloud app deploy
继续上载源目录中的所有文件,尽管我已经使用.gcloudignore
文件显式地排除了它们。例如,上载了虚拟环境文件夹env
,这会导致错误,因为那时部署包含的文件超过10000个。在
我在Windows10下使用Python3.7和gcloud SDK版本251.0.0。我尝试了gcloud app deploy
的beta版和普通版。在
.gcloudignore
文件仅包含以下内容:
.gcloudignore
# If you would like to upload your .git directory, .gitignore file or
# files from your .gitignore file, remove the corresponding line below:
.git
.gitignore
#!include:.gitignore
我可以在带有--verbosity=info
标志的输出中看到它识别了.gcloudignore
文件,但随后它将env
文件夹上载到云存储。我希望这个文件夹被跳过。Git按预期工作。在
通过取消对以下行的注释,可以“包括”被
.gitignore
文件忽略的所有内容:如果您的
.gitignore
文件已经忽略了env
目录,这将导致gcloud
也忽略它(以及git忽略的所有其他文件)。在相关问题 更多 >
编程相关推荐