lib/deprec/recipes/mongrel.rb in andyh-deprec-1.99.26 vs lib/deprec/recipes/mongrel.rb in andyh-deprec-1.99.27

- old
+ new

@@ -19,26 +19,26 @@ # Install desc "Install mongrel" - task :install do + task :install, :roles => :app do gem2.install 'mongrel' gem2.install 'mongrel_cluster' gem2.install 'swiftiply' symlink_mongrel_rails SYSTEM_CONFIG_FILES[:mongrel].each do |file| deprec2.render_template(:mongrel, file.merge(:remote=>true)) end activate_system end - task :symlink_mongrel_rails do + task :symlink_mongrel_rails, :roles => :app do sudo "ln -sf /usr/local/bin/mongrel_rails /usr/bin/mongrel_rails" end - task :symlink_logrotate_config do + task :symlink_logrotate_config, :roles => :app do sudo "ln -sf #{deploy_to}/mongrel/logrotate.conf /etc/logrotate.d/mongrel-#{application}" end # Configure @@ -140,19 +140,19 @@ desc "Restart application server." task :restart, :roles => :app do send(run_method, "mongrel_rails cluster::restart --clean -C #{mongrel_conf}") end - task :activate, :roles => :app do + task :activate do activate_system activate_project end - task :activate_system, :roles => :app do + task :activate_system do send(run_method, "update-rc.d mongrel_cluster defaults") end - task :activate_project, :roles => :app do + task :activate_project do symlink_mongrel_cluster symlink_monit_config end task :deactivate, :roles => :app do