end
node[:dev][:rails].each do |name, details|
- ruby node[:passenger][:ruby_version]
database_name = details[:database] || "apis_#{name}"
site_name = "#{name}.apis.dev.openstreetmap.org"
rails_directory = "/srv/#{name}.apis.dev.openstreetmap.org"
group "apis"
mode 0644
variables :site => site_name
- notifies :touch, "file[#{rails_directory}/tmp/restart.txt]"
+ notifies :run, "execute[#{rails_directory}]"
end
apache_site site_name do