Every time I deployed a basic Go backend application to the App Engine Flexible environment I get the aforementioned issue.
每次我将一个基本的Go后端应用程序部署到App Engine灵活环境中时,我都会遇到上述问题。
runtime: go
env: flex
endpoints_api_service:
# The following values are to be replaced by information from the output of
# 'gcloud endpoints services deploy openapi-appengine.yaml' command.
name: YOUR-APP-ID.appspot.com
rollout_strategy: managed
manual_scaling:
instances: 1
I tried deploying once and again with a variation of the parameters in the yaml section. But any of them actually worked.
我一次又一次地尝试使用YAML部分中的各种参数进行部署。但它们中的任何一个实际上都奏效了。
更多回答
优秀答案推荐
Actually specifying a exact version of the Go runtime makes it work.
实际上,指定Go运行时的确切版本使其工作。
runtime_config:
operating_system: "ubuntu22"
runtime_version: "1.21"
更多回答
我是一名优秀的程序员,十分优秀!