私は、デプロイスクリプトを実行すると、私はエラーを抱えている:rbenv:バージョン `2.2.3' がインストールされていません(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
がset :rbenv_ruby, '2.2.3'
サーバーを持っており、ローカルにインストール済みruby 2.2.3p173
2.2.3
から2.2.3p173
への値をset :rbenv_ruby
に変更しても機能しませんでした。
こんにちは!残念ながら、 'Capfile'に' set:rbenv_path'を追加するだけではうまくいきませんでした。御時間ありがとうございます。 – Askar
これはCapfileではなく、deploy.rbにある必要があります。 –
ええ、私は 'deploy.rb'に移動したときに働いていました。 – Askar