英文:
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]。
英文:
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:
答案1
得分: 1
app run
不再是gcloud SDK的一部分,可以在所有可能的命令树下看到:
gcloud alpha
没有app
命令组gcloud app
没有run
命令gcloud beta
没有run
命令gcloud preview app
没有app
命令组
这是在2016年1月13日发布的版本92.0.0中删除的。该变更日志建议使用dev_appserver.py
代替。在运行本地开发服务器中可以找到一个示例。
> 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:
gcloud alpha
has noapp
command groupgcloud app
has norun
commandgcloud beta
has norun
commandgcloud preview app
has noapp
command group
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.
> 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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论