2016-10-05 7 views
1

CentOS 7でRails 5プロジェクトをrbenvで実行しています。私はcap staging deployを実行すると、私はエラーを得た:キャップステージング展開:bash:bundle:コマンドが見つかりません

cd /srv/www/stagings/testproject/current; bundle exec rake db:migrate RAILS_ENV=staging stderr: bash: bundle: command not found 

** DEPLOY FAILED 
** Refer to log/capistrano.log for details. Here are the last 20 lines: 

    INFO [f7a6296f] Finished in 0.256 seconds with exit status 0 (successful). 

私は何の問題もなくdeployディレクトリ/srv/www/stagings/testproject/currentbundle installを実行することができます。

PATH=$PATH:$HOME/.local/bin:$HOME/bin 
export PATH 
export PATH="$HOME/.rbenv/bin:$PATH" 
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH" 
eval "$(rbenv init -)" 

ルビー、宝石、バンドラバージョンの.bash_profile

which ruby 
~/.rbenv/shims/ruby 
which bundle 
~/.rbenv/shims/bundle' 
which gem 
~/.rbenv/shims/gem 

私は

gem uninstall bundler 
gem install bundler` 

は動作しませんみました。 ヘルプがありますか?どうもありがとうございました!

答えて

0

capistrano/rbenvを使用してください。 Capistranoはssh経由で対話型シェルを起動しません。したがって、.bash_profileはロードされません。

関連する問題