问题描述
我正在将文件上传到Google云。我收到以下错误:
ERROR: (gcloud.app.deploy) An error occurred while parsing file: [C:\Users\Samuel\app.yaml]
mapping values are not allowed here
in "C:\Users\Samuel\app.yaml",line 5,column 7
这是.yaml文件的内容
runtime: go
api_version: go1
handlers:
- url: /
script: _go_app
我不太清楚这个问题;它无法运行,如何将VS代码连接到我的Google云项目?谢谢
解决方法
我注意到您的app.yaml
文件中有两件事:
- 直到g114为止,没有
runtime: go' entry in known documentation there is only like
g111(对于当前处于beta版的GO 1.14)-reference
-
api_version
仅在旧的运行时才可用,并且仅在旧的运行时才需要(我仅在Python2和PHP5.5中才发现它),而在其他运行时才贬值,请确保在Go中不可用-reference
我将从纠正这一问题开始。