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/current
でbundle 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`
は動作しませんみました。 ヘルプがありますか?どうもありがとうございました!