-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Update Magic Mirror Server and Client mode documentation #186
base: master
Are you sure you want to change the base?
Conversation
updated client mode install instructions
really there's just one install, and then you can run any one of the three environments from there just by changing the command My script is targeted at running full but again all you have to do is change the command to launch the other environments |
maybe i went a bit heavy on the documentation, my approach was with the mindset of what would have helped me figure it out without having to look at any other sources or do any googling. Feel free to edit/amend as needed. |
Can you change the target to the Thanks :) |
done |
@@ -14,18 +14,18 @@ installers can be found under: | |||
|
|||
## Manual Installation | |||
|
|||
These instructions deploy a standalone version of Magic Mirror, for [Server Only](/getting-started/installation.html#server-only) and [Client Only](/getting-started/installation.html#client-only) installs please read the install specific instructions below | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rejas last time you lintered the lines to a max. length, will you do this here before/after merge?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after merge I will lint again
3. Replace | ||
`DISPLAY=:0 npm start` | ||
with | ||
`DISPLAY=:0 npm server` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm server
this will not work, must be npm run server
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its running for me with npm server
changed it to npm run server
and didn't see any difference. but i'll admit i don't fully understand how this works, just documenting what i had to do to get it working :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can also say, that npm server
does not work for me (or in general as far as i know). Only a few scripts work out of the box, like start
and test
Maybe you got some shortcuts somewhere, but please update here to use "start"
|
||
To always start MagicMirror² in server only mode you need to edit the `installers/mm.sh` file otherwise it will start in full mode after a reboot: | ||
|
||
1. Backup mm.sh: `cp installers/mm.sh installers/mm.sh.bak` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rejas don't know anything about this mm.sh
stuff, totally irrelevant when using docker, so is this a standard setup or how should we document it here?
Found in mm.sh
this line
# This file is still here to keep PM2 working on older installations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the mm.sh
file is removed on develop
so installers/mm.sh
will not exist anymore with next release. This file will be part of sam's script repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, please remove the stuff about mm.sh
* Minor changes - wording - Magic Mirror -> MagicMirror - format * sh -> shell
Add documentation for the specialDayUnique config option
* bump prettier * run prettier
* Update weather.md Updated documentation for MetOffice update * Update weather.md
@rejas how are
|
maybe we should merge master regularly back into develop (or everytime master gets some updates) so that this wont happen? |
we should do it everytime master gets some updates, I did it now (with the expected result of merge conflicts in this PR). |
we also need to remove the comment doesn't work over ssh.. as we fixed that a long time ago |
resolved the conflicts and removed the ssh comment. |
Thanks! As already mentioned in the comments above: The So I think the 2 sections beginning with But I'm open to other approaches. |
So should this really be a PR against develop? The intent of this PR when initially submitted was to document running server and client mode based on the way things worked at the time and I guess still will until the next release. Since there is new functionality coming up in the future would it make sense to merge this into master to get current state documented, and setup another PR in develop to update the documentation based on new functionality? Or would it make sense to just close this PR and set up a new one that accounts for functionality changes from scratch. |
I would go for documentation for next release and omit the We can stay on |
@briodan can you update your branch and resolve the conflicts so that we can get this PR into our code? |
3. Replace | ||
`DISPLAY=:0 npm start` | ||
with | ||
`DISPLAY=:0 npm server` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can also say, that npm server
does not work for me (or in general as far as i know). Only a few scripts work out of the box, like start
and test
Maybe you got some shortcuts somewhere, but please update here to use "start"
|
||
To always start MagicMirror² in server only mode you need to edit the `installers/mm.sh` file otherwise it will start in full mode after a reboot: | ||
|
||
1. Backup mm.sh: `cp installers/mm.sh installers/mm.sh.bak` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, please remove the stuff about mm.sh
@@ -14,18 +14,18 @@ installers can be found under: | |||
|
|||
## Manual Installation | |||
|
|||
These instructions deploy a standalone version of Magic Mirror, for [Server Only](/getting-started/installation.html#server-only) and [Client Only](/getting-started/installation.html#client-only) installs please read the install specific instructions below | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after merge I will lint again
there is one install only the start script has a shortcut to not require the word run installers/mm.sh was removed from the MagicMirror package and taken over by my scripted installer |
This PR was written over a year ago to document how client and server mode were working at the time, with the Q4 release that changed the way things work for MM I don't know how much of this PR is still valid and I don't have the cycle to test it. I updated my branch to latest, but beyond that I'll let others take this forward and update the documentation if still required. |
Thanks for your work, Ill take it upon me to finish the PR. Alas, you seem to have worked on your master branch and I cannot push to that it seems :-( |
updating instructions on how to run MagicMirror in server only and client only mode.
fixes #3196