update installation updating instruction with small note about nginx

jschan
Thomas Lynch 2 years ago
parent 5e15e5cdd5
commit 816e772484
Signed by: fatchan
GPG Key ID: 112884AA57DF40B1
  1. 12
      INSTALLATION.md

@ -116,18 +116,28 @@ To enable the proxy, tick "Use Socks Proxy" in global management settings and se
## Updating
```bash
#stop the jschan backend
#first, stop the jschan backend
$ pm2 stop ecosystem.config.js
#pull the latest changes
$ git pull
#install dependencies again in case any have updated or changed
$ npm install
#check if anything nginx related changed between the old and new verison, e.g.
$ git diff v0.1.5 v0.1.6 configs/nginx
#If you use a completely standard jschan nginx, run configs/nginx/nginx.sh again.
#Otherwise, update your nginx config with the necessary changes.
#run the gulp migrate task. this will update things such as your database schema.
$ gulp migrate
#run the default gulp task to update, scripts, css, icons, images and delete old html
$ gulp
#start the backend again
$ pm2 restart ecosystem.config.js --env production
#if something breaks, check and read the logs, they will help figure out what went wrong
$ pm2 logs
```

Loading…
Cancel
Save