Sha256: b005eae3376a393f541c6c1fcba1ca5ea1c85587f9898506da1f5311a013271f

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

# 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"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capitate-0.2.8 lib/deployment/deploy.rb