vendredi 7 avril 2017

How to use Ruby 2.4.0 on a server

When I run cap production deploy I get the following error:

cap production deploy

SSHKit::Command::Failed: ruby exit status: 2
ruby stdout: Nothing written
ruby stderr: Ruby ruby-2.4.0 is not installed

I specified the Ruby version in my deploy.rb file:

set :passenger_restart_with_touch, true
set :rvm_ruby_version, 'ruby-2.4.0'

and included it in my Gemfile:

gem "capistrano", "~> 3.8"
gem 'capistrano-bundler'
gem 'capistrano-rails'
gem 'capistrano-rvm'
gem 'capistrano-passenger'

How should I run Ruby version 2.4.0 on the server without going into the server?

Aucun commentaire:

Enregistrer un commentaire