Created ๐Ÿ†™ How to Update (markdown)

migrate-v1-to-v2
Louis Lam 2021-08-19 12:54:48 +08:00
parent a2d38fb3e7
commit 758790c803
1 changed files with 25 additions and 0 deletions

@ -0,0 +1,25 @@
### ๐Ÿ†™๐Ÿณ Docker
Re-pull the latest docker image and create another container with the same volume.
For someone who used my "How-to-use" commands to install Uptime Kuma, you can update by this:
```bash
docker pull louislam/uptime-kuma:1
docker stop uptime-kuma
docker rm uptime-kuma
docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1
```
PS: For every new release, it takes some time to build the docker image, please be patient if it is not available yet.
### ๐Ÿ†™ ๐Ÿ’ช๐Ÿป Without Docker
```bash
cd <uptime-kuma-directory>
git fetch --all
git checkout 1.2.0 --force
npm install
npm run build
pm2 restart uptime-kuma
```