可以在firebase上托管python/flask网站吗? [英] Can python/flask websites be hosted on firebase?

查看:105
本文介绍了可以在firebase上托管python/flask网站吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用python/flask的网站,并且我知道Firebase托管仅适用于静态网站,但是我需要能够在我的应用程序中使用Firebase云功能,并且需要Firebase托管(请纠正我我错了).由于node js是服务器端的,但是您可以将它与firebase托管一起使用,所以我希望可能也有使用python的方法.否则,如果有一种无需使用Firebase托管即可使用云功能的方法,您也可以告诉我.

I have a website that uses python/flask, and I know that firebase hosting is only for static websites, but I need to be able to use firebase cloud functions in my app, and that requires firebase hosting (please correct me if I am wrong). As node js is server side, but you can use it with firebase hosting, I was hopeful that there might be a way to use python too. Otherwise, if there is a way to use cloud functions without firebase hosting, you can tell me about that too.

推荐答案

使用Firebase功能不需要Firebase托管,正如您提到的,Firebase托管用于静态页面.

You don't need Firebase Hosting for using Firebase Functions, and as you mentioned Firebase Hosting is for static pages.

Firebase函数托管在firebase上(独立于Firebase Hosting的静态页面),并且当前不支持python.

Firebase Functions are hosted on firebase (independent from Firebase Hosting for static pages), and currently don't support python.

对于HTTP触发器Firebase函数,您只需从任何后端或前端本身向函数的URL发出HTTP请求即可.

For HTTP trigger Firebase Functions you simply make HTTP requests to your function's url, from any backend or from frontend itself.

Firebase DB/Storage和其他触发器函数以相同的方式工作,但是没有显式调用,则它们是在定义函数时在DB/Storage等特定事件中触发的.

Firebase DB/Storage and other trigger functions work in the same way, but don't explicitly call then they are triggered on specific events in DB/Storage etc. that you specify when defining functions.

这篇关于可以在firebase上托管python/flask网站吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆