【问题标题】:How to link/connect Firebase and Google App Engine for image resizing如何链接/连接 Firebase 和 Google App Engine 以调整图像大小
【发布时间】:2018-03-05 21:01:52
【问题描述】:

我正在使用 Firebase,我正在尝试利用 AppEngine 与get_serving_url() 一起提供的图像大小调整服务。 https://medium.com/google-cloud/uploading-resizing-and-serving-images-with-google-cloud-platform-ca9631a2c556.

我对如何将我的谷歌应用引擎图像大小调整服务链接到我的 Firebase 云存储实例感到困惑。

我在文档 https://firebase.google.com/docs/storage/gcp-integration 中看到了这句话

用于 Cloud Storage 的 Firebase SDK 默认使用 Google App Engine bucket,这意味着如果您构建一个 App Engine 应用程序,您可以使用 用于在 Firebase 和 App 之间共享数据的内置 App Engine API 引擎。这对于执行音频编码、视频 转码和图像转换,以及其他计算 密集的后台处理。

我怎样才能指向这个Google App Engine default bucket?我在任何地方的谷歌应用引擎仪表板界面中都没有看到它。

我已经设置了一个 firebase 项目,然后创建了一个应用引擎项目 - 但我看不到任何方法可以将我的应用引擎指向 firebase 创建的 default bucket。那是基于某种帐户ID吗?我可以在管理界面或工具的哪个位置设置该链接,以便我上传到 Firebase 默认存储桶的文件可以由应用引擎映像服务器调整大小?

【问题讨论】:

    标签: google-app-engine firebase google-cloud-storage firebase-storage


    【解决方案1】:

    似乎无法将现有的 firebase 项目与现有的谷歌云平台 (GCP)/应用引擎项目相关联。

    • 首先创建 GCP 应用引擎项目
    • 然后,在 firebase 上,转到添加项目 -> 打开“项目名称”下拉菜单并选择现有的 GCP 项目。

    firebase 项目 ID 将与 GCP 项目 ID 相同,GCP 默认存储桶 gs://.appspot.com 是默认的 firebase 存储存储桶,您可以在 firebase 上选择其他 GCP 存储桶存储页面。

    【讨论】:

      【解决方案2】:

      如果您有现有的 Firebase 项目,则会自动为您创建相应的 Google Cloud 项目。

      只需转到 Google Cloud 控制台 (https://console.cloud.google.com),您就可以选择同名的项目(与您的 Firebase 项目的名称相同)。如果您将 GAE 应用部署到该项目,那么它应该能够访问您的数据。

      【讨论】:

        猜你喜欢
        • 2018-04-28
        • 1970-01-01
        • 1970-01-01
        • 2019-04-18
        • 1970-01-01
        • 1970-01-01
        • 2016-10-02
        • 1970-01-01
        • 2012-07-11
        相关资源
        最近更新 更多