Search code examples
meteor

Meteor.js: Build iOS app for production Where should –server <host>:<port> point?


I am building iOS app using Meteor + Cordova and can't get my head around.. Using Meteor build <path> --server <host>:<port> command, where should <host>:<port> point? What server should I have to build an iOS app? Should I deploy my app to Galaxy first?


Solution

  • --server <host>:<port>
    

    should point to the location of your Meteor server (so your mobile app knows where to go to connect to your Meteor based backend). For example, if you've deployed your Meteor backend to Galaxy, and have made it available at https://yourprodurl.com, then your --server setting would look like:

    --server=https://yourprodurl.com:443