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).
나는 아무 문제없이 배포 디렉토리 /srv/www/stagings/testproject/current
에 bundle install
을 실행할 수 있습니다 내가 cap staging deploy
을 실행하면 나는 오류가 발생했습니다.
.bash_profile을
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 -)"
루비, 보석, 들러 버전 :
which ruby
~/.rbenv/shims/ruby
which bundle
~/.rbenv/shims/bundle'
which gem
~/.rbenv/shims/gem
나는이 작동하지 않습니다
gem uninstall bundler
gem install bundler`
을 시도했다. 도움이 되었습니까? 고마워요!