Skip to content

Commit

Permalink
Capistrano asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNaessens committed May 26, 2024
1 parent cf9d704 commit 0c94efa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
3 changes: 1 addition & 2 deletions Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ require "capistrano/scm/git"
install_plugin Capistrano::SCM::Git

require "capistrano/rails"
require "capistrano/rbenv"
# require 'capistrano/rvm'
require "capistrano/asdf"

# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
Dir.glob("lib/capistrano/tasks/*.cap").each { |r| import r }
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,9 @@ group :development do

# Deployment
gem "capistrano"
gem "capistrano-asdf"
gem "capistrano-passenger"
gem "capistrano-rails"
gem "capistrano-rbenv"
gem "capistrano-rvm"

# Linting
gem "rubocop", "~> 1.30"
Expand Down
12 changes: 4 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,16 @@ GEM
i18n
rake (>= 10.0.0)
sshkit (>= 1.9.0)
capistrano-asdf (1.1.1)
capistrano (~> 3.0)
sshkit (~> 1.2)
capistrano-bundler (2.0.1)
capistrano (~> 3.1)
capistrano-passenger (0.2.1)
capistrano (~> 3.0)
capistrano-rails (1.6.2)
capistrano (~> 3.1)
capistrano-bundler (>= 1.1, < 3)
capistrano-rbenv (2.2.0)
capistrano (~> 3.1)
sshkit (~> 1.3)
capistrano-rvm (0.1.2)
capistrano (~> 3.0)
sshkit (~> 1.2)
chartkick (4.1.3)
chunky_png (1.4.0)
climate_control (0.2.0)
Expand Down Expand Up @@ -393,10 +390,9 @@ DEPENDENCIES
byebug
cancancan (~> 3.3)
capistrano
capistrano-asdf
capistrano-passenger
capistrano-rails
capistrano-rbenv
capistrano-rvm
chartkick (~> 4.0)
daemons (~> 1.4)
delayed_job (~> 4.1)
Expand Down
7 changes: 0 additions & 7 deletions config/deploy/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,3 @@
}

set :rails_env, 'production'
set :rbenv_type, :system
set :rbenv_ruby, File.read('.ruby-version').strip

# NVM config
set :default_env, {
path: "/home/tap/.nvm/versions/node/v14.18.0/bin:$PATH"
}

0 comments on commit 0c94efa

Please sign in to comment.