# Alastair Brunton's Capistrano Tasks
Capistrano.configuration(:must_exist).load do
desc "Rename production database.yml to live app"
task :rename_db_file do
run "cp #{release_path}/config/database.production #{release_path}/config/database.yml"
end
desc "Keep the releases clean"
task :after_deploy do
cleanup
end
desc "Stop the nginx webserver"
task :nginx_stop do
sudo '/etc/init.d/nginx stop'
end
desc "Start the nginx webserver"
task :nginx_start do
sudo '/etc/init.d/nginx start'
end
end