Quando eseguo uno script deploy, sto avendo errori:rbenv: versione 2.2.3' `non è installato (impostato dalla variabile d'ambiente RBENV_VERSION)
[cb123fad] rbenv: version `2.2.3' is not installed (set by RBENV_VERSION environment variable)
DEBUG [cb123fad]
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: Exception while executing as [email protected]: bundle exit status: 1
bundle stdout: rbenv: version `2.2.3' is not installed (set by RBENV_VERSION environment variable)
bundle stderr: Nothing written
SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: bundle exit status: 1
bundle stdout: rbenv: version `2.2.3' is not installed (set by RBENV_VERSION environment variable)
bundle stderr: Nothing written
SSHKit::Command::Failed: bundle exit status: 1
bundle stdout: rbenv: version `2.2.3' is not installed (set by RBENV_VERSION environment variable)
bundle stderr: Nothing written
Tasks: TOP => deploy:initial
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as [email protected]: Exception while executing as [email protected]: bundle exit status: 1
bundle stdout: rbenv: version `2.2.3' is not installed (set by RBENV_VERSION environment variable)
bundle stderr: Nothing written
Capfile
ha set :rbenv_ruby, '2.2.3'
Server e localmente ho installato ruby 2.2.3p173
la modifica del valore 2.2.3
-2.2.3p173
per set :rbenv_ruby
non ha funzionato.
Ciao! Sfortunatamente l'aggiunta di 'set: rbenv_path' nel' Capfile' non ha funzionato per me. Grazie per il tuo tempo. – Askar
Questo dovrebbe essere in deploy.rb, non in Capfile. –
Sì, ho lavorato quando mi sono trasferito in 'deploy.rb'. – Askar