有没有办法在一台服务器上创建多个 meteor 客户端?我的意思是拥有多个不同的客户端应用程序,它们都与同一台服务器通信?因此,www.mainapp.com 上的数据更改将显示在 www.companionapp.com 中,反之亦然。
谢谢。
最佳答案
Is there any way of creating multiple meteor clients on one server?
是的,您可以将它们托管在像 nginx 这样的反向代理后面.
What I mean is having multiple, distinct, client applications that all communicate with the same server? So, a data change at www.mainapp.com will show up in www.companionapp.com and vice versa.
是的,只要所有应用程序都以名称 MONGO_URL
启动,那么它们将共享同一个数据库(因此同时反射(reflect)其更改)。
关于meteor - 一个项目中的多个 MeteorJS 客户端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26167821/