eycap v0.6.8 rvm capistrano v1을 사용하여 rvm gem 경로를 감지할 수 없습니다.4.3
11590 단어 eycap
묘사
rvm capistrano v1로 업그레이드한 후4.3 내 Engine Yard 관리 환경에서 내 응용 프로그램의gems는/data/app_name/shared/bundled_gems/ruby/1.9.1/gems
가 아닌 /usr/local/rvm/gems/ruby-1.9.3-p429@app_name/gems/
에 설치되어 있다.토론 #1
당분간 합병하지 마세요.@7백조 이름은 몰라
run_rvm_or
=>https://github.com/engineyard/eycap/commit/b20fefb7ff5f3e1fbb4683d9a1b3939381e619b8#L1R7@baburdick 코드는 branch bugfix/filtering_rvm_run_issue_43
토론 #2
에서 얻을 수 있습니다. 이 변경 설정을 사용할 때 오류가 발생했습니다.~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/variables.rb:82:in `block in fetch': `rvm_require_role' not found (IndexError)
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/variables.rb:110:in `block in protect'
from <internal:prelude>:10:in `synchronize'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/variables.rb:110:in `protect'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/variables.rb:78:in `fetch'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/bundler/gems/eycap-b20fefb7ff5f/lib/eycap/lib/rvm_helper.rb:11:in `block in run_rvm_or'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/actions/invocation.rb:78:in `block in parallel'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/command.rb:107:in `initialize'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/actions/invocation.rb:78:in `new'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/actions/invocation.rb:78:in `parallel'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/bundler/gems/eycap-b20fefb7ff5f/lib/eycap/lib/rvm_helper.rb:9:in `run_rvm_or'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/bundler/gems/eycap-b20fefb7ff5f/lib/eycap/recipes/bundler.rb:22:in `block (3 levels) in <top (required)>'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:138:in `instance_eval'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:138:in `invoke_task_directly'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:101:in `find_and_execute_task'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/callback.rb:38:in `call'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/callbacks.rb:141:in `block in trigger'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/callbacks.rb:141:in `each'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/callbacks.rb:141:in `trigger'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/callbacks.rb:27:in `invoke_task_directly_with_callbacks'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:101:in `find_and_execute_task'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/callback.rb:38:in `call'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/callbacks.rb:141:in `block in trigger'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/callbacks.rb:141:in `each'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/callbacks.rb:141:in `trigger'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/callbacks.rb:27:in `invoke_task_directly_with_callbacks'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/namespaces.rb:110:in `block in define_task'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/recipes/deploy.rb:254:in `block (2 levels) in load'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:138:in `instance_eval'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:138:in `invoke_task_directly'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/namespaces.rb:110:in `block in define_task'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/recipes/deploy.rb:234:in `block (3 levels) in load'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:56:in `transaction'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/recipes/deploy.rb:233:in `block (2 levels) in load'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:138:in `instance_eval'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:138:in `invoke_task_directly'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/namespaces.rb:191:in `method_missing'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/namespaces.rb:110:in `block in define_task'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/recipes/deploy.rb:201:in `block (2 levels) in load'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:138:in `instance_eval'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:138:in `invoke_task_directly'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/callbacks.rb:25:in `invoke_task_directly_with_callbacks'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/configuration/execution.rb:101:in `find_and_execute_task'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:46:in `block in execute_requested_actions'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:45:in `each'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:45:in `execute_requested_actions'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/cli/help.rb:19:in `execute_requested_actions_with_help'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:34:in `execute!'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:14:in `execute'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/bin/cap:4:in `<top (required)>'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/bin/cap:19:in `load'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/bin/cap:19:in `<main>'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/bin/ruby_noexec_wrapper:14:in `eval'
from ~/.rvm/gems/ruby-1.9.3-p429@app_name/bin/ruby_noexec_wrapper:14:in `<main>'
토론 #셋
에 한 걸음 더 나아가다.하지만 이제 알았어.`bundler:bundle_config' is only run for servers matching {:roles=>:app, :only=>{:no_bundle=>true}}, but no servers matched
~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:79:in `abort'
~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:79:in `handle_error'
~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:39:in `rescue in execute!'
~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:24:in `execute!'
~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:14:in `execute'
~/.rvm/gems/ruby-1.9.3-p429@app_name/gems/capistrano-2.15.5/bin/cap:4:in `<top (required)>'
~/.rvm/gems/ruby-1.9.3-p429@app_name/bin/cap:19:in `load'
~/.rvm/gems/ruby-1.9.3-p429@app_name/bin/cap:19:in `<main>'
~/.rvm/gems/ruby-1.9.3-p429@app_name/bin/ruby_noexec_wrapper:14:in `eval'
~/.rvm/gems/ruby-1.9.3-p429@app_name/bin/ruby_noexec_wrapper:14:in `<main>'
토론 #4
@7hunderbird 마지막 오류는capistrano 작업 선별 문제처럼 보입니다bundler:bundle_config
토론 #5
https://github.com/capistrano/capistrano/blob/master/lib/capistrano/configuration/connections.rb#L160- 어떤 이유로 이 실패를 초래했는지, 이걸 찾았어https://gist.github.com/donnoman/251078#file- capistrano-filter-rb-L13 - 지금 어떻게 해야 할지 불확실:토론 #6
해결됐어!모든 것이 정상인 것 같다.배송: -)토론 #7
여러분의 노력과 테스트 감사합니다!오늘 나는 eycap의 다음 버전에서 이 글을 발표할 것이다.@7hunderbird:너무 좋아요.기대하다.일단 내가 gm를 업데이트할 수 있다면, 나는 이미 합병하여 변경할 준비가 되어 있다.
토론 #8
감사합니다!Reference
이 문제에 관하여(eycap v0.6.8 rvm capistrano v1을 사용하여 rvm gem 경로를 감지할 수 없습니다.4.3), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://github.com/engineyard/eycap/issues/43텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)