So, I'd like to employ mobile app hot code pushing. My project is still on 9.4, as there are some bugs that'd take some work to move to version 1, but if that'd solve the below problems, I'll tackle it.
Anyway, everything works perfectly when I run the server with:
(of course, it works fine with dev, etc)
I can change a file, the mobile app downloads the update and reloads, etc.
However, when I try to host it with nginx phusion passenger, I don't know how to pass along the --mobile-server setting. As such, if I update a client file and trigger a hot code push, after the mobile app gets the instruction to update, it starts trying to download the files from
http://10.0.2.2.
This is the same behavior I see if I try to do a hot code push after running:
meteor --production (omitting the --mobile-server option), so I'm pretty sure not being able to pass this setting along to passenger is the root of my problem.
I was hoping it could be passed along as an environment variable, but I see no mention of it in the documentation.
this bakes in the server setting, and I just configure passenger to host the create node bundle instead.
This gets me past the previous bug, but introduces a new one:
when hosting from a meteor bundle, the app fails when trying to retrieve:
sure enough, if I go into the meteor code directory and run
So it appears that a meteor build bundle doesn't respond to this url. I've tried running the bundle both with "node main.js" and by pointing nginx passenger to the bundle, and they both exhibit the same behavior.
Anyway, help solving either issue would get this resolved for me:
1. is there a way to pass along --mobile-server to meteor from nginx passenger, as an environment variable, cgi param, or otherwise?
2. is there some trick to getting a meteor build bundle to generate a /__cordova/manifest.json as a static file, or at least respond to that url?
Thanks for your time!