Fix error
This commit is contained in:
parent
9e6feef594
commit
eaf72063d9
1 changed files with 4 additions and 2 deletions
|
@ -51,7 +51,9 @@ append :linked_dirs,
|
||||||
# before first deploy.
|
# before first deploy.
|
||||||
# set :ssh_options, verify_host_key: :secure
|
# set :ssh_options, verify_host_key: :secure
|
||||||
|
|
||||||
ruby_version = File.read(File.expand_path('.ruby-version', __dir__)).chomp
|
root_dir = File.join(__dir__, '..')
|
||||||
ruby_gemset = File.read(File.expand_path('.ruby-gemset', __dir__)).chomp
|
|
||||||
|
ruby_version = File.read(File.expand_path('.ruby-version', root_dir)).chomp
|
||||||
|
ruby_gemset = File.read(File.expand_path('.ruby-gemset', root_dir)).chomp
|
||||||
|
|
||||||
set :rvm_ruby_version, "#{ruby_version}@#{ruby_gemset}"
|
set :rvm_ruby_version, "#{ruby_version}@#{ruby_gemset}"
|
||||||
|
|
Reference in a new issue