I’m developing both web and mobile app from the same repo, using the same code base and resources for both.
The problem is that I can run web server OR cordova app one at a time, but I can’t run them both at the same time, so that mobile app connects to that local server (http://localhost:3000) instead if its own (bundled one).
When one is already started, starting the second one throws
Unexpected mongo exit code 100 error, meaning that the mongo connection is already in use (by the other one).
I’ve already tried
meteor run ios-device --mobile-server=http://localhost:3000
but no luck.
So, it’s only for development/debugging, not for deployment/production.
Is that even possible or I have to separate and run them from respective dirs?