From c9d59838ce7fe60bfeb1cf97b7b5630061515b52 Mon Sep 17 00:00:00 2001 From: Alex Skrenchuk Date: Mon, 11 Mar 2024 10:13:21 -0700 Subject: [PATCH] use .ruby-version for setting ruby version --- .github/workflows/deploy.yml | 1 - config/deploy.rb | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a4855e50..e65f9883 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -63,7 +63,6 @@ jobs: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7.8 # Not needed with a .ruby-version file bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: get-deployment-config uses: actions/checkout@v4 diff --git a/config/deploy.rb b/config/deploy.rb index d4f0903b..ccb7d007 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -34,7 +34,8 @@ set :linked_dirs, %w{log vendor/bundle tmp/pids tmp/sockets public/system} # rbenv -# set :rbenv_type, :system #or :user +set :rbenv_type, :system +set :rbenv_ruby, File.read('.ruby-version').strip # set :rbenv_ruby, '2.2.5' # set :rbenv_roles, :all # default value