From 2cc098a5f1f184fa8e627e3d8d65a7910d9967c6 Mon Sep 17 00:00:00 2001 From: 1Luc1 Date: Fri, 23 Aug 2024 09:19:31 +0200 Subject: [PATCH] docs: update manual install to include code update --- website/docs/install/manual.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/website/docs/install/manual.md b/website/docs/install/manual.md index 87c955e..002065d 100644 --- a/website/docs/install/manual.md +++ b/website/docs/install/manual.md @@ -59,6 +59,22 @@ pm2 start ./dist/src/server/main.js --name tianji Default, `Tianji` will run on http://localhost:12345 +## Update Code to new Version + +```bash +# Checkout new release/tags +cd tianji +git fetch --tags +git checkout -q + +# run db migrations +cd src/server +pnpm db:migrate:apply + +# Restart Server +pm2 restart tianji +``` + # Frequently Asked Questions ## Install `isolated-vm` failed