Browse Source

feat(drone): add debug step to deployment script for troubleshooting

- Introduced a new debug step in the .drone.yml file to output the current PATH, user, and locations of Node.js and PM2.
- This addition aims to assist in troubleshooting deployment issues by providing visibility into the environment configuration during the CI/CD process.
main
npmrun 1 week ago
parent
commit
d819f7b0b7
  1. 6
      .drone.yml

6
.drone.yml

@ -11,6 +11,12 @@ trigger:
- push
steps:
- name: debug
commands:
- echo $PATH
- whoami
- which node
- which pm2
- name: deploy
environment:
# exec runner 常不设置 HOME,会导致 ~/.bun、~/.nvm 等路径展开错误

Loading…
Cancel
Save