我遇到了passenger_apache2 cookbook的默认行为问题。我跑的时候
include_recipe "passenger_apache2::source"
include_recipe "passenger_apache2::mod_rails"
我收到有关厨师红宝石路径问题的错误。我不知道这是否受rbenv路径的影响(安装了riot的食谱)。奇怪的是,如果我重新运行与测试厨房的融合,则错误不会显示出来。
Mxlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /opt/chef/embedded/bin/ruby /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/passenger-4.0.14/bin/passenger-install-apache2-module _4.0.14_ --auto ----
STDOUT:
STDERR: /opt/chef/embedded/bin/ruby: No such file or directory -- /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/passenger-4.0.14/bin/passenger-install-apache2-module (LoadError)
---- End output of /opt/chef/embedded/bin/ruby /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/passenger-4.0.14/bin/passenger-install-apache2-module _4.0.14_ --auto ----
Ran /opt/chef/embedded/bin/ruby /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/passenger-4.0.14/bin/passenger-install-apache2-module _4.0.14_ --auto returned 1
Resource Declaration:
---------------------
# In /tmp/kitchen/cookbooks/passenger_apache2/recipes/source.rb
50: execute "passenger_module" do
51: command "#{node['passenger']['ruby_bin']} #{node['passenger']['root_path']}/bin/passenger-install-apache2-module _#{node['passenger']['version']}_ -````-auto"
52: creates node['passenger']['module_path']
end