0

rails 3.2.8 ruby​​ 1.9.3 シンプルなrailsアプリをawsにデプロイしたい、complete_passenger_nginx_postgresqlで加硫したawsキー、シークレット、アカウントをrubber.ymlに配置

cap rubb:create_staging でエラーが出て、原因も調べ方もわかりません。あなたの提案が大好きです。

  • 2013-02-02 21:46:17 loadrubber:setup_local_aliases' /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/rubber-2.1.2/lib/rubber/recipes/rubber/setup.rb:92:inでブロック (3 レベル) を実行しています: nil を /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems から文字列 (TypeError) に変換できません/Rubber-2.1.2/lib/rubber/instance.rb:188:in each' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/rubber-2.1.2/lib/rubber/instance.rb:188:ineach' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/rubber-2.1.2/lib/rubber /recipes/rubber/setup.rb:77:in block (2 levels) in load' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/execution.rb:138:ininstance_eval ' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/execution.rb :138: invoke_task_directly' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/callbacks.rb:25:in/Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/execution.rbからのinvoke_task_directly_with_callbacksで:89: execute_task' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/namespaces.rb:191:in/からのmethod_missingでユーザー/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/namespaces.rb:110:inblock in define_task' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/rubber-2.1.2/lib/rubber/recipes/rubber/instances.rb:383:inpost_refresh' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/rubber-2.1.2/lib/rubber/recipes/rubber/instances.rb:242:increate_instances' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/rubber-2.1.2/lib/rubber/recipes/rubber/instances.rb:29:inブロック (2 レベル) 内load' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/execution.rb:138:in instance_eval' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/execution.rb:138:ininvoke_task_directly' from /Users/yanivpreiss/ .rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/callbacks.rb:25:in invoke_task_directly_with_callbacks' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/execution.rb:89:inexecute_task ' from /Users/yanivpreiss/.rvm/gems/ruby-1.9 .3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/namespaces.rb:191: method_missing' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/namespaces.rb:110:in/Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems の define_task のブロック内/rubber-2.1.2/lib/rubber/recipes/rubber/utils.rb:27:inblock (2 levels) in load' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/execution.rb:138:in/Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/execution.rb:138:in invoke_task_directly' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/callbacks.rb:25:ininvoke_task_directly_with_callbacks からの instance_eval' /Users/yanivpreiss/ から.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/execution.rb:89:in execute_task' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/execution.rb:101:infind_and_execute_task' from /Users/yanivpreiss/.rvm/gems/ruby-1.9 .3-p362/gems/capistrano-2.14.1/lib/capistrano/cli/execute.rb:46: block in execute_requested_actions' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/cli/execute.rb:45:in/Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano からそれぞれに-2.14.1/lib/capistrano/cli/execute.rb:45:in execute_requested_actions' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/cli/help.rb:19:inexecute_requested_actions_with_help' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano /cli/execute.rb:34:inexecute!' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/cli/execute.rb:14:inexecute' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/bin/cap:4:in <top (required)>' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/bin/cap:19:inload' from /Users/yanivpreiss/.rvm/gems/ruby -1.9.3-p362/bin/cap:19:in <main>' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:ineval' from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `'
4

1 に答える 1

1

rubber:setup_local_aliases問題の原因と思われるので、rubber.yml ファイルに何かを正しく設定していない可能性があります。domain nameおそらく設定するのを忘れましたか?さらに、昨日デプロイしようとしましcomplete_unicorn_nginx_postgresqlたが、HAproxy は nginx_unicorn とのポート バインディングでいくつかの問題を抱えていたので、注意してください。

于 2013-02-04T12:02:58.490 に答える