Browse Source

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.
main
npmrun 1 week ago
parent
commit
fd65d13487
  1. 1
      .drone.yml

1
.drone.yml

@ -75,6 +75,7 @@ steps:
rm -rf "$UNZIP_DIR" rm -rf "$UNZIP_DIR"
mkdir -p "$UNZIP_DIR" mkdir -p "$UNZIP_DIR"
tar -xzf "$REPO_DIR/build-output.tar.gz" -C "$UNZIP_DIR" tar -xzf "$REPO_DIR/build-output.tar.gz" -C "$UNZIP_DIR"
- cd "$UNZIP_DIR"
- pm2 stop nuxt4-demo || true - pm2 stop nuxt4-demo || true
- pm2 delete nuxt4-demo || true - pm2 delete nuxt4-demo || true
- pm2 start ./run.sh --name nuxt4-demo - pm2 start ./run.sh --name nuxt4-demo
Loading…
Cancel
Save