docs: add update instructions
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m4s
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m4s
This commit is contained in:
parent
ff6d3b2de6
commit
cb9a35cb2b
2 changed files with 24 additions and 2 deletions
|
@ -78,4 +78,16 @@ sudo ln -s /etc/nginx/sites-available/mernmail /etc/nginx/sites-enabled/mernmail
|
||||||
|
|
||||||
## 6. Restart NGINX
|
## 6. Restart NGINX
|
||||||
|
|
||||||
Restart NGINX using either `sudo systemctl restart nginx` or `sudo /etc/init.d/nginx restart` command.
|
Restart NGINX using either `sudo systemctl restart nginx` or `sudo /etc/init.d/nginx restart` command.
|
||||||
|
|
||||||
|
## Updating MERNMail
|
||||||
|
|
||||||
|
To update the MERNMail webmail application, run these commands:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd ~/mernmail
|
||||||
|
git pull
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
After updating MERNMail, restart MERNMail using the `pm2 restart "MERNMail"` command.
|
|
@ -78,4 +78,14 @@ cp dist/mod.js /usr/lib/svrjs/mods/mernmail.js
|
||||||
|
|
||||||
## 6. Restart SVR.JS
|
## 6. Restart SVR.JS
|
||||||
|
|
||||||
Restart SVR.JS using either `sudo systemctl restart svrjs` or `sudo /etc/init.d/svrjs restart` command.
|
Restart SVR.JS using either `sudo systemctl restart svrjs` or `sudo /etc/init.d/svrjs restart` command.
|
||||||
|
|
||||||
|
## Updating MERNMail
|
||||||
|
|
||||||
|
To update the MERNMail webmail application, run this command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo runuser svrjs -s /bin/bash -c 'cd /var/lib/mernmail && git pull && npm install && npm run build'
|
||||||
|
```
|
||||||
|
|
||||||
|
After updating MERNMail, restart SVR.JS using either `sudo systemctl restart svrjs` or `sudo /etc/init.d/svrjs restart` command.
|
Loading…
Reference in a new issue