We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc09de4 commit 44777d0Copy full SHA for 44777d0
1 file changed
.github/workflows/cd.yml
@@ -31,9 +31,14 @@ jobs:
31
# Pull latest code
32
git pull origin main
33
34
- # Load rbenv
35
- export PATH="$HOME/.rbenv/bin:$PATH"
+ # Load Ruby environment
+ export PATH="/home/ubuntu/.rbenv/bin:$PATH"
36
+ export PATH="/home/ubuntu/.rbenv/shims:$PATH"
37
eval "$(rbenv init -)"
38
+
39
+ # Verify Ruby environment
40
+ echo "Ruby version: $(ruby -v)"
41
+ echo "Bundler version: $(/home/ubuntu/.rbenv/shims/bundler -v)"
42
43
# Setup environment
44
export RAILS_MASTER_KEY=${{ secrets.RAILS_MASTER_KEY }}
@@ -57,5 +62,5 @@ jobs:
57
62
RAILS_ENV=production bundle exec rails db:migrate
58
63
59
64
# Restart the service instead of running puma directly
60
- sudo systemctl restart puma.service
65
+ bundle exec puma -C config/puma.rb
61
66
EOF
0 commit comments