Read the statement by Michael Teeuw here.
Does the config allow for different modes or not?
-
In the main configuration file, there is a section to specify “serveronly” as an option which is supposed to NOT load any client resources. Attempting to start the mirror with npm start doesn’t seem to actually “respect” this option and it constantly complains about client-side components that may not be installed or operational.
I’ve also not found anywhere in the configuration where you might be able to specify “clientonly” and indicate the server to connect to. Why is this? Why do I need three different ways of starting the mirror depending on if I’m running a server, a client, or both?
What am I missing here?
-
@ember1205 digging?
right there in the doc
https://docs.magicmirror.builders/getting-started/installation.html#usageexcept the 1st bullet point is no longer true
works same way today
no plans to do all this w a single command
-
@ember1205 the parm in config.js matches an older startup method, using run-start.sh which my installer script still uses for pi0w systems.
setting it to anything, but launching the electron.js (see the start: clause in package.json) skips the script that uses this value, so
it would do nothingI believe the commented out stuff is being removed the next release.
why different commands. cause it needs to do different stuff
my run-start just executes the different commands under the covers.
in client only the config.js is not used. as the client is a browser onto the remote mm
-
Makes sense… Are there plans, then, to change the startup to a single command (script) that will read some sort of config file or accept a command-line parameter to control what gets started? I had to do a bit of digging to find the different (correct) commands to use to start the server on a headless machine and the client on a Pi and then put them into the “mm.sh” startup script so that PM2 could load each of them correctly. This doesn’t seem to match up with what’s documented, either.
-
@ember1205 digging?
right there in the doc
https://docs.magicmirror.builders/getting-started/installation.html#usageexcept the 1st bullet point is no longer true
works same way today
no plans to do all this w a single command