【问题标题】:Eclipse Google Cloud Tools: Where is Datastore running?Eclipse Google Cloud Tools:Datastore 在哪里运行?
【发布时间】:2021-02-18 02:41:08
【问题描述】:

通过 Eclipse(使用 Google Cloud Tools)运行 Java Google App Engine 时,我可以通过管理仪表板(localhost:8080/_ah/admin/datastore)检查我的数据存储区。

是否可以访问 Datastore Rest API?我在哪里可以做到这一点?它是否在不同路径下的同一端口上运行?

【问题讨论】:

    标签: eclipse google-app-engine datastore


    【解决方案1】:

    Eclipse 似乎正在启动 dev_appserver.py,因此您无法使用 Datastore API。

    我从未使用过 Datastore 模拟器,但这可能允许您使用 API。

    另一种选择是将实时数据存储区 API 用于测试 GAE 项目。

    【讨论】:

      【解决方案2】:

      如果您想知道 Datastore 模拟器监听调用的端口默认为 8081,可以是 changed with gcloud beta emulators datastore start --host-port=localhost:8081

      或者,如果您想手动访问 GCP 项目的 Datastore API,您可以:

      或者

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2020-07-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-07-27
        相关资源
        最近更新 更多