Open ethanwillis opened 8 years ago
Quick update. It looks like I would modify main.js in .electrify/app and require a script at the top of the file that sets all of the system environment variables.
@ethanwillis main.js is an automated generated file, how did you achieve requiring script at top of it ???
Hello, I tried digging into your electrify code to see where I could include an additional script to set system environment variables before the meteor app is started.
My use case is that I want to create an electron app but point meteor to my hosted compose.io mongodb servers. I initially was going to set all my information in Meteor's settings.json... However settings.json is well known to not allow us to set the port for the mongo instance and other information.
If you would have any guidance on the chain of calls that happen up to and including the start of the meteor server I would love to do a PR for an enhancement to allow for other users to do what I'm aiming for!
Thanks, Ethan