错误:(gcloud.app.deploy)无法识别为有效的源目录或文件

时间:2019-07-01 10:15:33

标签: python-3.x google-app-engine google-cloud-platform

每次我运行gcloud app deploy命令时都会收到此错误。

我的app.yamlmanage.py所在的目录相同。 我也不能在本地磁盘C上工作,也不能在本地磁盘G上工作,并使用Visual Studio代码cmd终端。

ERROR: An app.yaml (or appengine-web.xml) file is required to deploy this directory as an App Engine application. Create an app.yaml file using the directions at https://cloud.google.com/appengine/docs/flexible/python/configuring-your-app-with-app-yaml (App Engine Flexible Environment) or https://cloud.google.com/appengine/docs/standard/python/config/appref (App Engine Standard Environment) under the tab for your language.

ERROR: (gcloud.app.deploy) [G:\] could not be identified as a valid source directory or file.

2 个答案:

答案 0 :(得分:0)

据我了解,您正在从G:本地磁盘的主文件夹中运行“ gcloud app deploy”命令。

为了部署该应用程序,您的路径应为app.yaml文件所在的路径,或将路径指定为参数,如运行“ gcloud app deploy”的第一个示例中的here所示“。

答案 1 :(得分:0)

  1. 您输入的目录错误。

  2. 要确保app.yaml路径,可以将其包含在命令行中,如下所示:

    gcloud --quiet --project $PROJECT_ID app deploy app.yaml

相关问题