【发布时间】:2020-02-10 07:01:24
【问题描述】:
我有一个名为“artificiellt_osterbotten”的 Python Google Cloud 函数(不是 Firebase 函数),我想通过 Firebase 托管来触发它。这是我的 firebase.json 文件:
{
"hosting": {
"public": "public",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "/artificiellt_osterbotten",
"function": "artificiellt_osterbotten"
}
]
}
}
该路线似乎正在运行,但我得到的只是 404。我假设这与 Firebase 和 GCP 之间的断开连接有关。但是,该功能确实显示在 Firebase 控制台中。
有人知道这里有什么问题吗?甚至可以从 Firebase 托管触发 GCP Cloud Functions 吗?
我已将 Firebase 计划升级到 Blaze。
【问题讨论】:
-
谢谢,但这不是问题 - 我会把它放在下面
标签: python firebase google-cloud-platform google-cloud-functions firebase-hosting