【发布时间】:2016-07-09 15:46:14
【问题描述】:
我有一个使用“github.com/gorilla/mux”的应用程序,我可以使用goapp deploy 部署它。但是我不能对gcloud preview app deploy 做同样的事情,因为我遇到了这个错误:
Beginning deployment...
Copying files to Google Cloud Storage...
Synchronizing files to [<googlecloudsdk.api_lib.app.cloud_storage.BucketReference object at 0x10514e790>].
File upload done.
Updating module [api]...failed.
ERROR: (gcloud.preview.app.deploy) Error Response: [9] Deployment contains files that cannot be compiled: Compile failed:
2016/03/22 09:06:40 go-app-builder: build timing: 1×6g (42ms total), 0×6l (0 total)
2016/03/22 09:06:40 go-app-builder: failed running 6g: exit status 1
api.go:29: can't find import: "github.com/gorilla/handlers"
我希望能够做到这一点,因为我需要在合并时从 travisCI 进行部署,并且我想使用 service-client.json 进行授权。
有什么办法可以解决吗?
【问题讨论】:
-
eadeploy 仅适用于应具有稍微不同的应用程序结构(主要功能等)的托管虚拟机。
-
也有这个问题,但最终只使用
goapp deploy -
我也一样,我现在在 CI 中使用我的 oauth_refrash_token。这里有一个相关的问题groups.google.com/forum/#!topic/google-appengine-go/eoSSKKN_VmI
标签: google-app-engine go deployment gcloud