部署到Google App Engine时出错 [英] Error when deploying to Google App Engine
问题描述
过去几天,我一直在将不同版本的应用程序部署到google cloud.成功上传一些大文件后,突然我收到此错误:
I've been deploying different versions of my app to google cloud over the last few days. After successfully uploading a few large files, all of a sudden I receive this error:
错误:(gcloud.app.deploy)无法上传文件[/Users/tgb29/Desktop/shaforms2/python-docs-samples/appengine/flexible/storage/shaforms.bin],文件大小为[803047362](更大大于[33554432]的最大允许大小.)请删除该文件或将其添加到应用程序.yaml文件中的skip_files条目中,然后重试.
ERROR: (gcloud.app.deploy) Cannot upload file [/Users/tgb29/Desktop/shaforms2/python-docs-samples/appengine/flexible/storage/shaforms.bin], which has size [803047362] (greater than maximum allowed size of [33554432]). Please delete the file or add to the skip_files entry in your application .yaml file and try again.
我不确定在一次部署中发生了什么变化.
I'm not sure what changed in one deployment.
推荐答案
我认为此问题已重新添加到Google App Engine标准Java 8中.当我使用java11时,问题消失了.
I think this problem is releted to Google App Engine Standard java 8. When I used java11, problem disappeared.
此app.yaml对我有用:
This app.yaml works for me:
runtime: java11
env: standard
manual_scaling:
instances: 1
resources:
cpu: 1
memory_gb: 0.5
disk_size_gb: 10
启动方式:
gcloud app deploy
这篇关于部署到Google App Engine时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!