托管流星应用程序 [英] Hosting Meteor Application

查看:44
本文介绍了托管流星应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建 Meteor 应用程序,我想稍后在 IOS 和 Android 上发布它.

I am building Meteor application which I want to later publish it on IOS and Android.

我的问题是:

1) 是否可以在我自己的 Ubuntu 服务器上托管我的 Meteor 应用程序?

1) Is it possible to host my Meteor application on my own Ubuntu server?

2) 因为 Meteor 服务器和客户端捆绑在一起.移动版本将如何连接到服务器?

2) Because Meteor server and client sides are bundled into one. How will the Mobile versions connect to the server?

推荐答案

  1. 是的.您可以在各种地方托管 Meteor 应用程序,包括您自己的服务器.银河Digital Ocean 都是流行的云选项.
  2. 当您为 iOS 和/或 Android 构建应用程序时,您最终会得到可以发布到 App Store 和 Google Play 的应用程序.服务器代码没有捆绑到这些中.Meteor 的移动指南 详细描述了所有这些是如何工作的.服务器地址通过 ROOT_URL (文档).本质上,客户端将服务器的地址配置到其中,因此它知道家"在哪里.这显然不应该是 IP 地址,因为它可能会改变.
  1. Yes. You can host a Meteor app in all sorts of places including your own server. Galaxy and Digital Ocean are both popular cloud options.
  2. When you build for iOS and/or Android you end up with apps that you can post to the App Store and Google Play. The server code is not bundled into these. Meteor's mobile guide describes how all this works in detail. The server address is configured via the ROOT_URL (docs). Essentially the client has the server's address configured into it so it knows where "home" is. This should obviously not be an IP address since that can change.

这篇关于托管流星应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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