rails 3.2.8 红宝石1.9.3 我想将一个简单的rails应用程序部署到aws,使用complete_passenger_nginx_postgresql进行硫化 在rubber.yml中放置了aws密钥,密钥和帐户
在封顶橡胶:create_staging期间,我收到错误,我不知道它的来源以及如何调查。非常喜欢你的建议。
rubber: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转换为String(TypeError)
来自/Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/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:in
每个'
来自/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:in
instance_eval'
来自/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:in
invoke_task_directly_with_callbacks'
来自/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/namespaces.rb:191:in
method_missing'
来自/Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/namespaces.rb:110:in block 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:in
post_refresh'
来自/Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/rubber-2.1.2/lib/rubber/recipes/rubber/instances.rb:242:in create_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负载')
来自/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:in
invoke_task_directly'
来自/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:in
execute_task'
来自/Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/namespaces.rb:191:in method_missing'
from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/configuration/namespaces.rb:110:in
块中的define_task'
来自/Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/rubber-2.1.2/lib/rubber/recipes/rubber/utils.rb:27: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:in
instance_eval'
来自/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:in
invoke_task_directly_with_callbacks'
来自/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:in
find_and_execute_task'
来自/Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/cli/execute.rb:46:in 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:in
execute_requested_actions_with_help'
来自/Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/cli/execute.rb:34:in execute!'
from /Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/gems/capistrano-2.14.1/lib/capistrano/cli/execute.rb:14:in
执行'
来自/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:in
load'
来自/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:in
eval'
来自/Users/yanivpreiss/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in`'答案 0 :(得分:1)
rubber:setup_local_aliases
似乎是问题的根源,所以也许你没有在rubber.yml文件中正确设置。
忘了设置domain name
或许?
此外,我尝试使用complete_unicorn_nginx_postgresql
部署昨天,并且HAproxy在与nginx_unicorn的端口绑定中遇到了一些问题,所以要小心这些。