- From: <
>
- To:
- Subject: [chef] web_app.conf.erb Template Not Found
- Date: Wed, 23 Dec 2009 17:06:12 -0800 (PST)
I'm writing a cookbook to deploy a rails app. I'm using the deploy resource
then using the web_app definition to create the passenger conf file.
The client error's out and the server log shows:
~ Preferred template list: {}
~ Searching for preferred file in
~ Looking for host-domU-12-31-39-00-31-62.compute-1.internal/web_app.conf.erb
~ Looking for centos-5.4/web_app.conf.erb
~ Looking for centos/web_app.conf.erb
~ Looking for default/web_app.conf.erb
merb : worker (port 4000) ~ Cannot find a preferred file for web_app.conf.erb!
- (Chef::Exceptions::FileNotFound)
/usr/lib/ruby/gems/1.8/gems/chef-0.7.14/lib/chef/mixin/find_preferred_file.rb:87:in
`find_preferred_file'
My first thought was that since I have the standard cookbooks and my own
cookbooks in seperate repo's this might be the root cause, but I copied the
apache and passenger cookbooks into the same repo where I have my 'local'
cookbooks but that didn't seem to help.
Any one have any thoughts on how to fix?
Thanks,
Alex
RECIPE:
include_recipe "apache2"
include_recipe "passenger_apache2"
# ..snipped the deploy part
web_app node[:app_name] do
docroot "/src/apps/#{node[:app_name]}/current/public"
server_name "example.com"
rails_env "production"
end
- [chef] web_app.conf.erb Template Not Found, apsoto, 12/23/2009
Archive powered by MHonArc 2.6.16.