繁体   English   中英

如何在不使用 firebase 或 heroku 或 aws 的情况下将 MERN APP 部署到生产环境

[英]HOW to deploy a MERN APP to production, without using firebase or heroku or aws

所以人们,我打算用 MERN Stack 建立一个网站,并从我的本地机器上托管它。 如何在不使用 aws 或 fire base 的情况下做到这一点。

如何将我的机器用作 React 前端(托管在www.someurl.com中)的后端和数据库(express、node 和 mongodb 托管在本地主机中)。

PS:我已经创建了一个使用 firebase 和 firestore 作为后端的站点。 https://t-heros.web.app/

提前致谢。

一件事是您需要保持本地机器 24*7 全天候运行,以便您的应用程序全天工作。 And for your answer you can expose your localhost to public domain by using static IP address and routing applicable from your router with appropriate firewall rules, all this also requires effort and maybe static IP address requires purchase. 将这两者结合在一起,您的 React 应用程序可以访问您机器上的 localhost 进行操作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM