Separate server core from Electron.

This commit is contained in:
Michael Teeuw
2016-04-08 22:16:22 +02:00
parent 0441b9fb50
commit a34a5c4db0
4 changed files with 149 additions and 92 deletions

View File

@@ -16,7 +16,6 @@ This version of the Magic Mirror software focusses on a modular plugin system. B
3. Give the installer permission to run: `sudo chmod +x install.sh`
4. Start the installer: `sudo ./install.sh`
#### Manual Installation
1. Download the latest Node.js version:
@@ -32,6 +31,10 @@ This version of the Magic Mirror software focusses on a modular plugin system. B
**Important:** `npm start` does **not** work via SSH, use `DISPLAY=:0 nohup npm start &` instead. This starts the mirror on the remote display.
#### Server only
In some cases, you want to start the application without an actual app window. In this case, exectute the following command from the MagicMirror folder: `node serveronly`. This will start the server, after which you can open the application in your browser of choice.
## Configuration
1. Duplicate `config/config.js.sample` to `config/config.js`.