ruby 2.1.3
Rails 4.2.3
ローカルでのPCはmac
sakuraはVPSのcentos
nginx1.8.0
unicorn
現在CapistranoによるVPSへのデプロイの設定を行っておりrbenvの設定でエラーが出ておりどうすればいいのか分からなくなっております。
rails(プログラム)初心者です。
一通りCapistranoの設定を行いまして以下コマンドを入力。
※初めてのCapistrano設定です。
bundle exec cap production deploy:check
エラー内容
hogehoge no mac$ bundle exec cap production deploy:check DEBUG [4a4cd24c] Running /usr/bin/env [ -d ~/.rbenv/versions/2.1.3 ] as hogehoge@000.000.000.000 DEBUG [4a4cd24c] Command: [ -d ~/.rbenv/versions/2.1.3 ] DEBUG [4a4cd24c] Finished in 0.606 seconds with exit status 1 (failed). ERROR rbenv: 2.1.3 is not installed or not found in ~/.rbenv/versions/2.1.3 cap aborted! SSHKit::Runner::ExecuteError: Exception while executing as hogehoge@000.000.000.000: exit SystemExit: exit Tasks: TOP => rbenv:validate (See full trace by running task with --trace)
単純に読む限りではrbenvがインストールされていな、又は見つけられない。とエラーが出ているのかと。
このエラーの意味はサーバ上での場所を指しているのでしょうか?ローカル環境のでしょうか?
ローカルには~/.rbenv/versions/2.1.3 が御座います。
VPS上には/home/myapps/.rbenvが御座います。
config/deploy.rb には以下を設定
set :rbenv_ruby, '2.1.3' set :rbenv_path, '~/.rbenv'
Capfileにも以下を設定
require 'capistrano/rbenv' set :rbenv_type, :user set :rbenv_ruby, '2.1.3'
宜しくお願いします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。