Hello, I try to build a Meteor app I develop. The app consists from:
- Android client
- iOS client
The server is going to be deployed on different small servers (Raspberry Pi) in local networks, and it is not going to be hosted on public hosting.
1.How can I build the meteor bundle without specify --server? I don’t know the server at build time. When I execute meteor build builds I get:
Supply the server hostname and port in the --server option for mobile app builds.
2.How can I specify the server address on clients at runtime? I tried using
__meteor_runtime_config__.ROOT_URL, but seems they don’t do any effect on the default DDP connection.
Ultimately I would like to run SSDP advertiser server on the server and SSDP discovery on the clients using https://github.com/driftyco/cordova-plugin-discovery. Then do DDP.connect() to the discovered service. Any help or hint is more than welcome.