用于AngularJS APP + PHP后端的Firebase托管 [英] Firebase Hosting for AngularJS APP + PHP Backend

查看:75
本文介绍了用于AngularJS APP + PHP后端的Firebase托管的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此处的新主机托管问题:

newb hosting question here:

我习惯于构建有角度的应用程序+ firebase,然后仅在Firebase上托管.但是,我需要一些PHP功能才能与Amazon的Seller Central API通信.在开发过程中,我在本地运行用于PHP的WAMP服务器.

I'm used to building angular apps + firebase then just simply hosting on firebase. However, I needed some PHP functionality to communicate with Amazon's Seller Central API.. Locally during development I run a WAMP server for the PHP.

有人对我如何托管PHP脚本有建议吗?我应该将整个事情托管在goDaddy linux服务器上,还是可以使用Firebase Hosting + Google Cloud Service ..或Heroku.

Does anyone have a suggestion for how I can host the PHP scripts? Should I just host the whole thing on a goDaddy linux server or is there a way I can use Firebase Hosting + Google Cloud Service .. or maybe Heroku.

任何帮助,谢谢.抱歉,这是一个愚蠢的问题.

Any Help, thank you. Sorry it this is a dumb Q.

推荐答案

Firebase托管仅用于托管和服务静态资产(html,css,js).

Firebase Hosting is for hosting and serving static assets (html, css, js) only.

根据Firebase托管网站:

According to Firebase Hosting website:

借助托管,您可以快速轻松地部署Web应用程序和静态内容到一个单一的全球内容交付网络(CDN)命令.

With Hosting, you can quickly and easily deploy web apps and static content to a global content-delivery network (CDN) with a single command.

但是,话虽如此,您可以改用Firebase Functions并利用API端点和HTTP触发器来编写和执行后端代码.

However, with that said, you could instead use Firebase Functions and leverage on API endpoints and HTTP triggers to write and execute your backend code.

请注意,如果您想从Firebase Functions与第三方网站进行通信(对于您的Amazon API),则必须启用计费功能.如果您在Google的任何服务中进行通信,则可以免费使用这些功能.

Note that if you want to communicate from Firebase Functions to a 3rd party site, in your case Amazon APIs, you will have to enable billing. Functions are free to use if you're communicating within any of Google's services.

这篇关于用于AngularJS APP + PHP后端的Firebase托管的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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