Build iOS app for production Where should --server <host>:<port> point?


#1

Hello, I can’t get my head around…
Where should <host>:<port> point? What server should I have to build an iOS app? Should I deploy my app to Galaxy first?


#2

You’ll probably want to use a custom domain for your app, so just use --server yourdomain.com when building mobile app. The default port is 80, if you want to use another just append :your_port to the domain name.


#3

Thanks. But what if I don’t want my app to be reachable from the www?


#4

You don’t have to build any routing or templates for the web. You can even wrap your routes in if (Meteor.isCordova) { ... } block so they are not deployed on your server.


#5

Thanks for the (Meteor.isCordova) { ... } suggestion!