From 06257ce0f85ba0e814ef48e409cfbc0f2351ae91 Mon Sep 17 00:00:00 2001 From: npmrun <1549469775@qq.com> Date: Thu, 30 Apr 2026 14:40:55 +0800 Subject: [PATCH] fix(drone): streamline PM2 command execution in deployment script - Simplified the PM2 command handling in the .drone.yml file by removing unnecessary subshells and directly executing commands. - This change enhances the clarity and efficiency of the deployment process for the nuxt4-demo application. --- .drone.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index f608839..2722d77 100644 --- a/.drone.yml +++ b/.drone.yml @@ -75,11 +75,6 @@ steps: rm -rf "$UNZIP_DIR" mkdir -p "$UNZIP_DIR" tar -xzf "$REPO_DIR/build-output.tar.gz" -C "$UNZIP_DIR" - - | - set -e - cd "$UNZIP_DIR" - source ~/.nvm/nvm.sh - nvm use 24.15.0 - 'pm2 stop nuxt4-demo || true' - 'pm2 delete nuxt4-demo || true' - 'pm2 start ./run.sh --name nuxt4-demo' \ No newline at end of file + - pm2 stop nuxt4-demo || true + - pm2 delete nuxt4-demo || true + - pm2 start ./run.sh --name nuxt4-demo \ No newline at end of file