[doc] add upgrade instructions

This commit is contained in:
les
2019-09-26 16:56:28 +02:00
parent 80b4561931
commit edebbd5b8d
2 changed files with 17 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ apt-get update && apt-get install yarn
yarn add gancio --prod yarn add gancio --prod
``` ```
1. Setup with postgreSQL (optional as you can choose sqlite) 1. Setup with postgreSQL __(optional as you can choose sqlite)__
```bash ```bash
apt-get install postgresql apt-get install postgresql
# Create the database # Create the database
@@ -57,6 +57,12 @@ gancio start --config config.json
sudo yarn global add pm2 sudo yarn global add pm2
pm2 start gancio -- --config config.json pm2 start gancio -- --config config.json
# Run this command to run your application as a service: # Run this command to run your application as a service and automatically restart after a reboot:
sudo env PATH=$PATH:/usr/local/bin pm2 startup -u gancio pm2 startup # read the output!
sudo pm2 startup -u gancio
``` ```
1. Upgrade
sudo yarn global add gancio
sudo service pm2 restart

View File

@@ -82,3 +82,11 @@ docker-compose logs
1. Point your web browser to [http://localhost:13120](http://localhost:13120) or where you specified during setup and enjoy :tada: 1. Point your web browser to [http://localhost:13120](http://localhost:13120) or where you specified during setup and enjoy :tada:
1. You can edit `config.json` file and restart the container on your needs, see [Configuration](/config) for more details. 1. You can edit `config.json` file and restart the container on your needs, see [Configuration](/config) for more details.
## Upgrade
```bash
cd /opt/gancio
docker-compose up -d --no-deps --build
```