Skip to content

fix(deploy): prepend Bun + PM2 install dirs to PATH#59

Merged
Archasion merged 1 commit into
mainfrom
fix/deploy-path
May 9, 2026
Merged

fix(deploy): prepend Bun + PM2 install dirs to PATH#59
Archasion merged 1 commit into
mainfrom
fix/deploy-path

Conversation

@Archasion
Copy link
Copy Markdown
Member

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.

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.
@Archasion Archasion merged commit d62064d into main May 9, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant