Changeset 482

Show
Ignore:
Timestamp:
06/03/08 22:49:54 (7 months ago)
Author:
mbailey
Message:

added logrotate

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/deprec/recipes/rails.rb

    r472 r482  
    5555      :path => "rails_nginx_vhost.conf",  
    5656      :mode => 0644, 
     57      :owner => 'root:root'}, 
     58       
     59    {:template => 'logrotate.erb', 
     60      :path => "logrotate.conf",  
     61      :mode => 0644, 
    5762      :owner => 'root:root'} 
     63       
    5864    ] 
    5965 
     
    94100      task :config, :roles => [:app, :web] do 
    95101        deprec2.push_configs(:nginx, PROJECT_CONFIG_FILES[:nginx]) 
    96         deprec2.push_configs(:monit, PROJECT_CONFIG_FILES[:monit]) 
    97102        top.deprec.mongrel.config_project 
    98103        symlink_nginx_vhost 
    99         symlink_monit_config 
     104        symlink_logrotate_config 
    100105      end 
    101106 
    102107      task :symlink_nginx_vhost, :roles => :web do 
    103108        sudo "ln -sf #{deploy_to}/nginx/rails_nginx_vhost.conf #{nginx_vhost_dir}/#{application}.conf" 
     109      end 
     110       
     111      task :symlink_logrotate_config, :roles => :web do 
     112        sudo "ln -sf #{deploy_to}/nginx/logrotate.conf /etc/logrotate.d/nginx-#{application}" 
    104113      end 
    105114