include_recipe "passenger"
include_recipe "git"
include_recipe "mysql"
+include_recipe "nodejs"
include_recipe "postgresql"
package "php-apc"
package "php5-pgsql"
package "php5-sqlite"
+package "pngcrush"
+package "pngquant"
+
package "python"
package "python-argparse"
package "python-beautifulsoup"
package "python-dateutil"
package "python-magic"
package "python-psycopg2"
+package "python-gdal"
+
+nodejs_package "svgo"
easy_install_package "geojson"
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
recursive true
end
- file "/etc/cron.daily/rails-#{name}" do
+ file "/etc/cron.daily/rails-#{site_name}" do
action :delete
end