Skip to content

Commit ab43051

Browse files
committed
fix: Initialize rbenv in GitHub Actions deployment script
Fixes 'bundle: command not found' error by initializing rbenv environment before running bundle commands in SSH session.
1 parent 88dd9e8 commit ab43051

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ jobs:
4343
4444
cd ~/apps/core
4545
46+
# Initialize rbenv
47+
export PATH="$HOME/.rbenv/bin:$PATH"
48+
eval "$(rbenv init - bash)"
49+
4650
# Pull latest changes
4751
echo "📥 Pulling latest code from main..."
4852
git fetch origin

0 commit comments

Comments
 (0)