X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=config%2Fdeploy.rb;fp=config%2Fdeploy.rb;h=7fd175900056da4d4f035d5022f77dfbf54fbcdb;hb=889799c14324fbfb783a6e57dd8bfa5615670925;hp=1c6433a6739d69cb37195f4ab914b43865b0148f;hpb=942d6c5b97e90c2c9036d1ec776ca98584e5be8f;p=depot.git diff --git a/config/deploy.rb b/config/deploy.rb index 1c6433a..7fd1759 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -38,20 +38,37 @@ end # end #end -# Custom tasks for starting and restarting Mongrel cluster + ## Custom tasks for starting and restarting Mongrel cluster +#namespace :deploy do +# desc "start the mongrel cluster" +# task :start, :roles => :app do +# sudo "/usr/bin/mongrel_cluster_ctl start" +# end +# +# desc "stop the mongrel cluster" +# task :stop, :roles => :app do +# sudo "/usr/bin/mongrel_cluster_ctl stop" +# end +# +# desc "restart the mongrel cluster" +# task :restart, :roles => :app do +# sudo "/usr/bin/mongrel_cluster_ctl restart" +# end +#end + namespace :deploy do - desc "start the mongrel cluster" task :start, :roles => :app do - sudo "/usr/bin/mongrel_cluster_ctl start" end - desc "stop the mongrel cluster" task :stop, :roles => :app do - sudo "/usr/bin/mongrel_cluster_ctl stop" end - desc "restart the mongrel cluster" + desc "Restart Application" task :restart, :roles => :app do - sudo "/usr/bin/mongrel_cluster_ctl restart" + run "touch #{release_path}/tmp/restart.txt" end + +# task :after_update_code, :roles => :app do +# run "rm -rf #{release_path}/public/.htaccess" +# end end