From a0d1d98e24cc963731dfa6652e356d5fdab43134 Mon Sep 17 00:00:00 2001 From: iUnstable0 Date: Thu, 16 Mar 2023 15:21:53 +0700 Subject: [PATCH] docs: improve stand-alone upgrade guide (#128) * Update README.md * docs: improve stand-alone upgrade guide * Update README.md --- README.md | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2d503766..bb9d835c 100644 --- a/README.md +++ b/README.md @@ -88,11 +88,27 @@ docker compose up -d #### Stand-alone -1. Remove the running app - ``` - pm2 delete pingvin-share-backend pingvin-share-frontend - ``` +1. Stop the running app + ```bash + pm2 stop pingvin-share-backend pingvin-share-frontend + ``` 2. Repeat the steps from the [installation guide](#stand-alone-installation) except the `git clone` step. + ```bash + cd pingvin-share + + # Checkout the latest version + git fetch --tags && git checkout $(git describe --tags `git rev-list --tags --max-count=1`) + + # Start the backend + cd backend + npm run build + pm2 restart pingvin-share-backend + + # Start the frontend + cd ../frontend + npm run build + pm2 restart pingvin-share-frontend + ``` ### Custom branding