From c560a527f4a0f61ff8f1132fc9e38ccb1f835191 Mon Sep 17 00:00:00 2001 From: son tran Date: Tue, 4 Jul 2023 10:08:45 +0700 Subject: [PATCH] update checkout theo tags --- monitor/setup/update_serverlite.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/monitor/setup/update_serverlite.sh b/monitor/setup/update_serverlite.sh index 3f2cb75..2e84626 100644 --- a/monitor/setup/update_serverlite.sh +++ b/monitor/setup/update_serverlite.sh @@ -15,9 +15,12 @@ then sudo chmod -R 0777 /var/www/html/BiFace_Server_Lite/runtime /var/www/html/BiFace_Server_Lite/web/assets /var/www/html/BiFace_Server_Lite/db /var/www/html/BiFace_Server_Lite/web/data/uploads else echo "================================ update serverlite pro ===============================" + echo "Enter the tags serverlite" + read type cd /var/www/html/BiFace_Server_Lite - git checkout litepro_dev - git pull origin litepro_dev + git fetch -v + git checkout tags/$type + # git pull origin litepro_dev fi echo "================================ update serverlite done!!! ===============================" pm2 reload all \ No newline at end of file