错误:(gcloud.preview.app)无效的选择:’run’

huangapple go评论93阅读模式
英文:

ERROR: (gcloud.preview.app) Invalid choice: 'run'

问题

我正在尝试在本地运行golang hello-world bigtable example,但遇到了以下问题。当我在bigtable-hello目录中运行gcloud preview app run app.yaml时,出现以下错误:

> ➜ bigtable-hello gcloud preview app run app.yaml
> Usage: gcloud
> preview app [optional flags] <group | command> group may be
> modules command may be deploy | gen-config
>
> (BETA) 这组命令允许您部署应用程序,管理现有部署,并在本地运行应用程序。这些命令替代了appcfg工具中的相应命令。
>
> 全局标志:运行gcloud -h以获取所有命令可用的标志的描述。
>
> 命令组:modules (BETA) 查看和管理您的App Engine模块。
>
> 命令:deploy (BETA) 将本地代码和/或配置部署到App Engine。 gen-config (BETA) 为源目录生成缺失的配置文件。
>
> 错误:(gcloud.preview.app) 无效的选择:'run'。
>
> 有效的选择是[deploy, gen-config, gen-repo-info-file, instances, modules, services, versions]。

我已将演示文件放入本地的go目录中,如下所示:
错误:(gcloud.preview.app)无效的选择:’run’

英文:

I'm trying to get the golang hello-world bigtable example running locally locally and running into this issue. When I run gcloud preview app run app.yaml from the bigtable-hello directory, I get the following error:

> ➜ bigtable-hello gcloud preview app run app.yaml
> Usage: gcloud
> preview app [optional flags] <group | command> group may be
> modules command may be deploy | gen-config
>
> (BETA) This set of commands allows you to deploy your app, manage your existing deployments, and also run your app locally. These
> commands replace their equivalents in the appcfg tool.
>
> global flags: Run gcloud -h for a description of flags available
> to all commands.
>
> command groups: modules (BETA) View and manage your
> App Engine modules.
>
> commands: deploy (BETA) Deploy the local code
> and/or configuration of
> your app to App Engine. gen-config (BETA) Generate missing configuration files for a
> source directory.
>
> ERROR: (gcloud.preview.app) Invalid choice: 'run'.
>
> Valid choices are [deploy, gen-config, gen-repo-info-file, instances,
> modules, services, versions].

I've put the demo files into my local go directory like below:
错误:(gcloud.preview.app)无效的选择:’run’

答案1

得分: 1

app run不再是gcloud SDK的一部分,可以在所有可能的命令树下看到:

这是在2016年1月13日发布的版本92.0.0中删除的。该变更日志建议使用dev_appserver.py代替。在运行本地开发服务器中可以找到一个示例。

&gt; dev_appserver.py src/github.com/jamescharlesworth/bigtable-hello

dev_appserver.py的其他标志和选项可以在本地开发服务器选项的文档中找到。

英文:

app run is no longer part of the gcloud SDK as can be seen under all the possible command trees:

This was removed with version 92.0.0 released on January 13, 2016. That changelog recommends using dev_appserver.py instead. An example can be found in Running the local development server.

&gt; dev_appserver.py src/github.com/jamescharlesworth/bigtable-hello

Other flags and options can be found in dev_appserver.py's documentation in Local Development Server Options.

huangapple
  • 本文由 发表于 2016年2月21日 23:54:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/35538279.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定