我'm using Firebase and I'尝试利用AppEngine与 get_serving_url()
的图像大小调整服务 . https://medium.com/google-cloud/uploading-resizing-and-serving-images-with-google-cloud-platform-ca9631a2c556 .
我对如何将我的谷歌应用引擎图像大小调整服务链接到我的firebase Cloud 存储实例感到困惑 .
我在文档中看到了这句话https://firebase.google.com/docs/storage/gcp-integration
适用于 Cloud 存储的Firebase SDK使用Google App Engine默认存储桶,这意味着如果您构建App Engine应用程序,则可以使用内置的App Engine API在Firebase和App Engine之间共享数据 . 这对于执行音频编码,视频转码和图像变换以及其他计算密集型后台处理非常有用 .
我怎么能指向这个 Google App Engine default bucket
?我没有在任何地方的谷歌应用引擎仪表板界面中看到它 .
我've already set up a firebase project and I then created an app engine project - but I don'看到任何方式将我的应用引擎指向firebase创建的 default bucket
. 这是基于某种帐户ID吗?我可以在管理界面或工具中设置链接,以便我上传到firebase默认存储桶的文件可以由应用引擎映像服务器调整大小吗?
1 回答
似乎无法将现有的firebase项目与现有的Google Cloud 平台(GCP)/ app引擎项目相关联 .
首先创建GCP应用程序引擎项目
然后,在firebase上,转到添加项目 - >打开"Project name"下拉列表并选择现有的GCP项目 .
然后,firebase项目ID将与GCP项目ID相同,GCP默认存储桶gs:// <project_id> .appspot.com是默认的firebase存储存储桶,您可以在firebase存储页面上选择其他GCP存储桶 .