1
capistrano를 사용하여 레일 응용 프로그램을 배포하고 번들로 사용하려고합니다. 나는 캡 배포를 실행하는 경우 - 또는 더 구체적으로Capistrano Bundler가 배포시 오류가 발생했습니다.
bundle exec cap staging bundler:install --trace
나는 다음과 같은 스택 추적과 함께 영구적 인 오류를 갖고있는 것 같다.
** Invoke staging (first_time)
** Execute staging
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke bundler:map_bins (first_time)
** Execute bundler:map_bins
** Invoke bundler:install (first_time)
** Execute bundler:install
DEBUG [bd567504] Running /usr/bin/env if test ! -d /var/www/TMC/current; then echo "Directory does not exist '/var/www/TMC/current'" 1>&2; false; fi on 162.243.225.14
DEBUG [bd567504] Command: if test ! -d /var/www/TMC/current; then echo "Directory does not exist '/var/www/TMC/current'" 1>&2; false; fi
DEBUG [bd567504] Finished in 1.443 seconds with exit status 0 (successful).
INFO [2058712b] Running /usr/bin/env bundle install --binstubs /var/www/TMC/shared/bin --path /var/www/TMC/shared/bundle --without development test --deployment --quiet on 162.243.225.14
DEBUG [2058712b] Command: cd /var/www/TMC/current && /usr/bin/env bundle install --binstubs /var/www/TMC/shared/bin --path /var/www/TMC/shared/bundle --without development test --deployment --quiet
DEBUG [2058712b] /usr/bin/env: bundle: No such file or directory
cap aborted!
SSHKit::Command::Failed: bundle exit status: 127
bundle stdout: Nothing written
bundle stderr: /usr/bin/env: bundle: No such file or directory
/Library/Ruby/Gems/2.0.0/gems/sshkit-1.4.0/lib/sshkit/command.rb:98:in `exit_status='
요리사를 사용하여 장비를 준비하고 RBENV 등을 설정 했으므로 capistrano/rbenv를 사용하지 않았습니다. 내 gemfile의 관련 섹션을 읽
group :development do
gem 'capistrano-rails', '~> 1.0.0'
gem 'capistrano-bundler', '~> 1.1.2'
end
I 로그인 수동은/var/www /에서 TMC/전류 경로에 현재 디렉토리를 작성했다.
모든 아이디어를 얻을 수 있습니다.
Bundler를 RubyGems와 함께 설치하면 안됩니까? 이 패키지는 적절한 저장소에 존재하지만 전혀 문제를 해결하지 못했습니다. – IIllIIll