Sha256: aed6f53cb5c7f3dee853dd01d43daa4bab9cd2b8a09ac6b7ab895448e2a7ef1f
Contents?: true
Size: 1.09 KB
Versions: 8
Compression:
Stored size: 1.09 KB
Contents
###################################################################### # APACHE DEFAULTS # ###################################################################### module ChickenSoup module WebServer STANDARD_CONTROL_SCRIPTS = ['/usr/sbin/apachectl', '/usr/sbin/apache2', '/usr/sbin/httpd'] STANDARD_LOG_LOCATIONS = ['/var/log/apache2', '/var/log/httpd', '/etc/httpd/logs'] STANDARD_ERROR_LOGS = ['error_log', 'error.log', 'httpd-error.log'] STANDARD_ACCESS_LOGS = ['access_log', 'access.log', 'httpd-access.log'] end end Capistrano::Configuration.instance(:must_exist).load do require 'chicken_soup/capabilities/shared/web_server-defaults' namespace :capabilities do namespace :defaults do desc "[internal] Sets intelligent defaults for Apache deployments." task :apache do capabilities.defaults.web_server if web_server_control_script =~ /apache2/ set :apache_enable_script, "a2ensite" set :apache_disable_script, "a2dissite" end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems