I’ve switched to needing to load a settings file every time I run meteor - so now, I’m always using “npm start” to run my project.
However, one could still run the server using “meteor” - which breaks my application things just won’t run right.
I’d like to be able to put a check before I start using the settings from the file to say “Hey, if you didn’t npm start, you need to…” and then actually
shutdown meteor from the server code. I can’t find any code that does this!?
I’m looking for something like
Does anyone know how to this?
Alternatively, maybe I could just detect that the settings file wasn’t loaded, and then run some command to attempt to load the settings file? Anyone have suggestions here?