From 758790c803478f1792a626fc11a7f8c82f35e9e2 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Thu, 19 Aug 2021 12:54:48 +0800 Subject: [PATCH] =?UTF-8?q?Created=20=F0=9F=86=99=20How=20to=20Update=20(m?= =?UTF-8?q?arkdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 🆙-How-to-Update.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 🆙-How-to-Update.md diff --git a/🆙-How-to-Update.md b/🆙-How-to-Update.md new file mode 100644 index 0000000..a2e6abd --- /dev/null +++ b/🆙-How-to-Update.md @@ -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 +git fetch --all +git checkout 1.2.0 --force +npm install +npm run build +pm2 restart uptime-kuma +``` \ No newline at end of file