From cb94ab3bb573d447c95afa511eca51462b50de74 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Mon, 12 Jul 2021 18:59:48 +0800 Subject: [PATCH] add update guide --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 31589e99..5f250831 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,9 @@ npm run start-server # Install PM2 if you don't have: npm install pm2 -g pm2 start npm --name uptime-kuma -- run start-server +# Listen to different port or hostname +pm2 start npm --name uptime-kuma -- run start-server -- --port=80 --hostname=0.0.0.0 + ``` Browse to http://localhost:3001 after started. @@ -56,6 +59,22 @@ Browse to http://localhost:3001 after started. [![Deploy to DO](https://www.deploytodo.com/do-btn-blue.svg)](https://cloud.digitalocean.com/apps/new?repo=https://github.com/louislam/uptime-kuma/tree/master&refcode=e2c7eb658434) +# How to Update + +### Docker + +Re-pull the latest docker image and create another container with the same volume. + +### Without Docker + +```bash +git fetch --all +git checkout 1.0.1 --force +npm install +npm run build +pm2 restart uptime-kuma +``` + # More Screenshots Settings Page: