From 2a7d51dae93254430dafca237e29c3a0694406d8 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 9 Jan 2021 16:35:25 -0700 Subject: [PATCH] Update the README to have better setup steps for systemd. --- server/README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/server/README.md b/server/README.md index 4af7aa0..aa38053 100644 --- a/server/README.md +++ b/server/README.md @@ -20,11 +20,18 @@ server folder in the Ghost Writer git repository. 7. Create a symlink named `ghost-writer.service` in `/etc/systemd/system` pointing to the service file in the `server` folder of the Ghost Writer Online repository. (Ex: `sudo ln -s /server/ghost-writer.service /etc/systemd/system/ghost-writer.service`) -8. Start the websocket server with `sudo systemctl start ghost-writer`. -9. Make sure the server is started by running `systemctl status ghost-writer` +8. Run `whereis node` and copy the absolute file path of the output +9. Edit the `ghost-writer.service` file to replace change the +`ExecStart=node dist/main.js` to replace `node` with the file path you copied +from the previous step +10. Reload the systemd daemon with `sudo systemd daemon-reload` to make the +changes to the service file take effect. +11. Start the websocket server with `sudo systemctl start ghost-writer` +12. Make sure the server is started by running `systemctl status ghost-writer` -* To restart the server, run `sudo systemctl restart ghost-writer`. -* To stop the server, run `sudo systemctl stop ghost-writer`. +* To start the server, run `sudo sustemctl start ghost-writer` +* To restart the server, run `sudo systemctl restart ghost-writer` +* To stop the server, run `sudo systemctl stop ghost-writer` * To access the server logs, run `sudo journalctl -u ghost-writer`