So I am in the following situation:
My app https://orderlion.at (this is just the landing page) is running for a couple of months now - I have a normal meteor app running in the browser, which is also responsive and thus supports mobile --> all good.
Now I want to try some new stuff - I want to build a separate (Meteor & Cordova) mobile app, which just connects to the backend of my main meteor app. Yes, the UI is completely different and some other stuff in the frontend too.
To put it simply: my mobile app is in many ways completely different - I need a seperate project for this to do this in a clean way. Just the whole backend can stay the same!
My main app is already a god-knows-how-many-lines behemoth, I 100% do NOT want to include my new mobile app into this monolithic app as well --> separate meteor app.
Main/Backend app is run like so:
meteor run --settings settings.json nothing fancy at all - spinning up its own MongoDB, running on standard
locahost:3000 - all standard!
Mobile app: I tried the following:
MONGO_URL=mongodb://127.0.0.1:3001/meteor NODE_ENV=development SERVER_ENV=mobileapp meteor run --port 3030 --settings settings.json
I then tried adding
ROOT_URL=http://10.0.0.1:3000 to my cmd - both do not work and I can’t login any more or anything.
I think I got it to work - pretty hacky but fine by me I guess: https://stackoverflow.com/a/31972637/1267447