Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting system environment variables before meteor app is started. #64

Open
ethanwillis opened this issue Aug 10, 2016 · 2 comments
Open

Comments

@ethanwillis
Copy link

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

@ethanwillis
Copy link
Author

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.

@ray-man
Copy link

ray-man commented Dec 9, 2016

@ethanwillis main.js is an automated generated file, how did you achieve requiring script at top of it ???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants