I am using Webistrano deploy my rails app...
As there is only the upper level task available ( Deploy, Deploy and
migrate, Restart App Servers, Rollback to previous and Setup)
I wonder howto have a deploy:web:disable/enable task maide availabe ?
I inserted my Apache rewrite conds, and inserted a public/system/
maintenance.html template, but I am lost regarding writing correctly
the Capistrano task ...
I have specific recipes for demo, testing, staging and production)
and
one 'mongrel_start_sto'p recipe I use with all my stages :
namespace :deploy do
desc 'Start mongrel_rails'
task :start do
run "cd #{current_path} && mongrel_rails cluster::start"
end
desc 'Stop mongrel_rails'
task :stop do
run "cd #{shared_path}/tmp/pids && rm -f *"
run "cd #{current_path} && mongrel_rails cluster::stop"
end
desc 'Restart mongrel_rails'
task :restart do
run "cd #{current_path} && mongrel_rails cluster::stop"
run "sleep 5"
run "cd #{current_path} && mongrel_rails cluster::start"
end
end
I believe I should use a before/after trigger... but how and where ?
thanks for your help
kad
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---