我需要使用 Meteor 开发与 iOS 兼容的应用程序。我打算将我的项目放入 digitalocean 液滴中。 如果 iOS 支持需要 Xcode,我如何从基于 linux 的 DigitalOcean Droplet 运行支持 iOS 的应用程序?
最佳答案
您将首先构建 meteor 应用程序并将其部署到 Digital Ocean。我建议在部署过程中使用 MUP。它非常简单明了。 Sacha Greif 有一段关于设置 Droplet 的精彩视频。
https://github.com/arunoda/meteor-up https://www.youtube.com/watch?v=WLGdXtZMmiI
然后您将为 iOS 构建 meteor 应用
meteor add-platform ios
关注此 MDG wiki 页面以获取有关构建 iOS 的更多信息... https://github.com/meteor/meteor/wiki/Meteor-Cordova-Phonegap-integration
基本上,如果你想在模拟器中运行,你可以使用下面的命令:
meteor run ios --mobile-server http://<your deployed server address>
如果要为 iOS 发行版构建,可以使用以下命令:
meteor build <bundle path> --server http://<your deployed server address>
关于linux - 在 DigitalOcean 上开发 iOS Meteor 应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29082848/