简体   繁体   English

Meteor.js部署用于Web和移动本机应用程序,一个代码库

[英]Meteor.js deploy for web and mobile native app, one code-base

So this maybe a silly question, but i guess I'm missing something. 所以这也许是一个愚蠢的问题,但是我想我缺少了一些东西。

I host my meteor app in modulus.com. 我将我的流星应用程序托管在factor.com中。 The goal is to have a single code-base for all devices and the web, fetching from the same database. 目标是为所有设备和Web拥有一个单一的代码库,并从同一数据库中获取。 So everything happens in the web is immediately synced with the mobile app or vice versa. 因此,网络中发生的所有事件都会立即与移动应用同步,反之亦然。

Should i provide different builds (different modulus projects [web, ios, android]) all connected to the same db to make it all work as one application? 我是否应该提供所有都连接到同一数据库的不同版本(不同模数项目[web,ios,android]),以使其都可以作为一个应用程序使用?

A single build will do? 单一构建会做什么?

How will this work? 这将如何运作?

thanks 谢谢

Yes, you can use the --server option to specify which Meteor server your built mobile app should point to. 是的,您可以使用--server选项指定您所构建的移动应用应指向哪个Meteor服务器。 This way, you have one Meteor backend running the web app, Android app, and iOS app. 这样,您就有一个运行Web应用程序,Android应用程序和iOS应用程序的Meteor后端。 This should work just fine with Modulus. 这对Modulus应该很好用。

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

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