Commit d62064d
authored
fix(deploy): prepend Bun + PM2 install dirs to PATH (#59)
appleboy/ssh-action runs a non-interactive non-login shell, so the
host's ~/.bashrc and ~/.profile — which is where the Bun installer
adds ~/.bun/bin to PATH — never gets sourced. The first `bun`
invocation in the deploy script crashes with "command not found"
even though Bun is installed.
Prepend $HOME/.bun/bin, $HOME/.local/bin, and /usr/local/bin to
PATH at the top of the script so `bun` and `pm2` resolve regardless
of how the script is invoked.1 parent 3d2a17d commit d62064d
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
| |||
0 commit comments