【问题标题】:ERROR: (gcloud.app.deploy) could not be identified as a valid source directory or file错误:(gcloud.app.deploy)无法识别为有效的源目录或文件
【发布时间】:2019-07-01 10:15:33
【问题描述】:

每次运行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.

【问题讨论】:

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


    【解决方案1】:

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

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

    【讨论】:

      【解决方案2】:
      1. 你错了目录。

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

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

      【讨论】:

        猜你喜欢
        • 2018-12-18
        • 2019-09-24
        • 2016-01-01
        • 2014-07-10
        • 1970-01-01
        • 1970-01-01
        • 2021-01-13
        • 2021-08-11
        • 1970-01-01
        相关资源
        最近更新 更多