From b0bfd88b7be2c06d04975cc1a5ebbf4aa63495c8 Mon Sep 17 00:00:00 2001 From: Weiming Date: Sat, 27 Jun 2026 13:38:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4fbfd14..700523e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -54,12 +54,12 @@ steps: - 'ARCHIVE="/tmp/feishu-approval.tar.gz"' - 'APP_NAME="feishu_approval"' - 'LEGACY_APP_NAME="feishu-approval"' - - 'pm2 describe "$APP_NAME" >/dev/null 2>&1 && pm2 stop "$APP_NAME" || true' - - 'pm2 describe "$LEGACY_APP_NAME" >/dev/null 2>&1 && pm2 stop "$LEGACY_APP_NAME" || true' + - 'pm2 delete "$APP_NAME" >/dev/null 2>&1 || true' + - 'pm2 delete "$LEGACY_APP_NAME" >/dev/null 2>&1 || true' - test -f "$ARCHIVE" - mkdir -p "$DEPLOY_PATH" - find "$DEPLOY_PATH" -mindepth 1 -delete - tar xzf "$ARCHIVE" -C "$DEPLOY_PATH" - chmod +x "$DEPLOY_PATH/deploy/start.sh" - echo "Deploy OK -> $DEPLOY_PATH" - - 'pm2 describe "$APP_NAME" >/dev/null 2>&1 && pm2 restart "$APP_NAME" --update-env || pm2 start "$DEPLOY_PATH/server.js" --name "$APP_NAME"' + - 'pm2 start "$DEPLOY_PATH/deploy/start.sh" --name "$APP_NAME"'