Browse Source

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

11
.drone.yml

@ -75,11 +75,6 @@ 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"
- | - pm2 stop nuxt4-demo || true
set -e - pm2 delete nuxt4-demo || true
cd "$UNZIP_DIR" - pm2 start ./run.sh --name nuxt4-demo
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'
Loading…
Cancel
Save