docs: add update instructions
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m4s

This commit is contained in:
Dorian Niemiec 2024-11-08 18:44:30 +01:00
parent ff6d3b2de6
commit cb9a35cb2b
2 changed files with 24 additions and 2 deletions

View file

@ -79,3 +79,15 @@ 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.

View file

@ -79,3 +79,13 @@ 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.