GAE部署错误:“无法编写多个程序包”

时间:2020-11-06 06:50:19

标签: google-app-engine build

将项目文件移动到新计算机后,我将无法再部署到Google App Engine。我不知道如何破译错误,而且我的Google搜索没有任何结果。这是返回的内容:

File upload done.
Updating service [default]...failed.                                           
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build ca8b6f48-9892-449a-a6d8-b220182e8d7c status: FAILURE
Error ID: 4daa946e
Error type: UNKNOWN
Error message: go build: cannot write multiple packages to non-directory /layers/google.go.build/bin/main
Full build logs: https://console.cloud.google.com/cloud-build/builds/[build log address]

该项目在我的本地计算机上运行良好。我不确定我在做什么错。

app.yaml看起来像这样:

runtime: go114 
instance_class: F1 
env_variables: 
BUCKET_NAME: "****.appspot.com" 
handlers: 
- url: /robots.txt 
  static_files: robots.txt 
  upload: robots.txt 
- url: /styles 
  static_dir: styles 
  secure: always 
- url: /scripts 
  static_dir: scripts 
  secure: always 
- url: /.* 
  script: auto 
  secure: always

感谢任何线索!

0 个答案:

没有答案