Meteor Cordova生产 [英] Meteor Cordova Production

查看:260
本文介绍了Meteor Cordova生产的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚来到科尔多瓦。对不起,如果这些是业余的问题。我想更多地了解一个典型的手机应用程序的设置和架构。

I'm new to Cordova. Sorry if these are amateur questions. I'd like to know more about the setup and architecture of how a typical phone app.

我有一个Meteor Cordova版本的本地版本工作,它的连接通过Modulus到远程服务器/ db。但我对于应用完成后一切将如何工作感到困惑。

I've got a local version of a Meteor Cordova build working and it's connecting to a remote server/db via Modulus. But I'm confused about how everything will work once the app is complete.


  • 当您申请应用商店时, server / db to the build / install of the app?

  • 实际运行应用程序的移动版本的服务器是什么?

  • 热代码推动声音很大。这怎么办呢? haha

我不是在寻找细节(除非你很慷慨)只是一些更高级的信息,这个过程将是伟大的。

I'm not looking for specifics (unless you're feeling generous) just some higher level info about this process would be great.

推荐答案

我会借给你我所知道的一切/我是怎么做的。首先,我的应用程序不连接到实时数据库,除了一些主控制器管理的东西。所以,因为这个,这不会与你的问题完全相关。

I'll lend you what little I know/how I'm doing it. First off, my app doesn't connect to the live database except for a few things controlled by a master admin. So because of that, this won't be totally relevant to your questions.

所以,设置。首先,一旦您的本地应用运行,请按照以下步骤操作: https:/ /github.com/meteor/meteor/wiki/Meteor-Cordova-Phonegap-integration 来测试和最终构建。对于您的--mobile-server选项,请放入您的远程应用程序所在的服务器(对Facebook登录重要的服务器)。

So, the set up. First, once you get your local app running follow the steps here: https://github.com/meteor/meteor/wiki/Meteor-Cordova-Phonegap-integration for testing and eventually building. For your --mobile-server option, put in the server where your remote app lives (important for facebook logins, etc).

正在运行的服务器是mini-mongo本地,就像在您的浏览器。您可以通过以下方式设置远程数据库网址:

The server that's running is mini-mongo locally, just like in your browser. You can set your remote db url by:

MONGO_URL=mongodb://username:password@remote.mongodb.net:27017 meteor run ios-device --mobile-server http://yourappname.meteor.com

其他的东西,当提交到应用商店,它是一样的过程。当您在cordova中构建或运行应用时,它会在

As for other things when submitting to the app store, it's the same process as ever. When you build or run your app in cordova, it makes a directory at

/.meteor/local/cordova-build

其中包含您的应用程序需要的所有正常资源。从那里,它只是更多cordova的东西。你需要处理白名单等。

Which contains all the normal resources your app needs. From there on, it's just more cordova stuff. You need to handle white listing, etc.

现在回到我的主管admin事情。这将存在于appname.com,并将连接到我在meteor构建中指定的同一数据库。这将处理热代码重新加载。

Now back to my master admin thing. That will exist at appname.com and will connect to the same database that I specified in my meteor build. That will handle the hot code reloads.

这是关于男人,祝你好运。

That's about it man, good luck.

这篇关于Meteor Cordova生产的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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