Commit 0c61a17c1429517df2bfaaf98f89f0c44e7c29ec

set the branch to sonian and changed the callback for the symlinks
  
1616set :scm, :git
1717set :ssh_options, { :forward_agent => true }
1818set :repository, "/var/git/#{application}/mainline.git"
19set :branch, "sonian"
1920set :repository_cache, "git-cache"
20# set :branch, "master"
2121set :deploy_to, "/var/www/#{application}"
2222set :deploy_via, :remote_cache
2323
24DATABASE_YML = ERB.new <<-EOF
25base: &base
26 adapter: mysql
27 socket: /var/run/mysqld/mysqld.sock
28 username: root
29 password:
30development:
31 database: #{application}_development
32 <<: *base
33test:
34 database: #{application}_test
35 <<: *base
36production:
37 database: #{application}_production
38 <<: *base
39EOF
40
41GITORIOUS_YML = ERB.new <<-EOF
42cookie_secret: d11c9229c49301cc6c307279b689396b
43repository_base_path: /var/git
44extra_html_head_data:
45system_message:
46gitorious_client_port: 3000
47gitorious_client_host: localhost
48gitorious_host: git.sonianarchive.com
49EOF
50
5124after "deploy:setup" do
5225 run "mkdir -p #{shared_path}/config"
53 put DATABASE_YML.result, "#{shared_path}/config/database.yml"
54 put GITORIOUS_YML.result, "#{shared_path}/config/gitorious.yml"
26
27 db_yml = ERB.new """
28 production:
29 adapter: mysql
30 socket: /var/run/mysqld/mysqld.sock
31 database: #{application}_production
32 username: root
33 """
34 put db_yml.result, "#{shared_path}/config/database.yml"
35
36 gitorious_yml = ERB.new """
37 cookie_secret: d11c9229c49301cc6c307279b689396b
38 repository_base_path: /var/git
39 extra_html_head_data:
40 system_message:
41 gitorious_client_port: 3000
42 gitorious_client_host: localhost
43 gitorious_host: git.sonianarchive.com
44 """
45 put gitorious_yml.result, "#{shared_path}/config/gitorious.yml"
46
5547 run "umask 02 && mkdir -p #{shared_path}/public/images/graphs"
5648end
5749
5850after "deploy:update_code" do
59 run "ln -nfs #{shared_path}/config/database.yml \
60 #{release_path}/config/database.yml"
61 run "ln -nfs #{shared_path}/config/gitorious.yml \
62 #{release_path}/config/gitorious.yml"
51 run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/"
52 run "ln -nfs #{shared_path}/config/gitorious.yml #{release_path}/config/"
6353 run "ln -nfs #{shared_path}/public/images/graphs \
64 #{release_path}/public/images/graphs"
54 #{release_path}/public/images/"
6555end
6656
6757namespace :deploy do