From fd65d13487ad46aed064d00bf4dbe8ae9aa1f270 Mon Sep 17 00:00:00 2001 From: npmrun <1549469775@qq.com> Date: Thu, 30 Apr 2026 14:46:19 +0800 Subject: [PATCH] fix(drone): navigate to the unzip directory before starting the application - Added a step to change the working directory to the unzip directory before executing PM2 commands for the nuxt4-demo application. - This adjustment ensures that the application starts in the correct context, improving the reliability of the deployment process. --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 2722d77..233d37e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -75,6 +75,7 @@ steps: rm -rf "$UNZIP_DIR" mkdir -p "$UNZIP_DIR" tar -xzf "$REPO_DIR/build-output.tar.gz" -C "$UNZIP_DIR" + - cd "$UNZIP_DIR" - pm2 stop nuxt4-demo || true - pm2 delete nuxt4-demo || true - pm2 start ./run.sh --name nuxt4-demo \ No newline at end of file