# Example deploy.rb set :application, "sick" set :user, "sick" set :groups, "admin" set :deploy_to, "/var/www/apps/sick" set :web_host, "192.168.1.111" set :db_host, "192.168.1.111" set :db_user, "sick" set :db_pass, prompt.password("DB Password: ") set :db_name, "sick" set :repository, "http://svn.ducktyper.com/scratch/testapp/trunk" set :mongrel_port, 12000 set :mongrel_size, 3 set :domain_name, "localhost" set :mysql_admin_password, prompt.password('Mysql admin password: ') set :deploy_via, :copy set :copy_strategy, :export role :web, "192.168.1.111" role :db, "192.168.1.111", :primary => true # Callbacks before "deploy:setup", "centos:add_user" after "deploy:setup", "mysql:setup", "rails:setup", "mongrel:cluster:centos:setup", "nginx:mongrel:setup", "sphinx:centos:setup", "sphinx:setup_monit", "mongrel:cluster:monit:setup" after "nginx:mongrel:setup", "nginx:centos:restart" after "deploy:update_code", "rails:update_code", "sphinx:update_conf" # Auto cleanup after deploy after "deploy", "deploy:cleanup"