Commit 525225e87ad9626afd434d5a111659a65980372d

changed the hostname, added the graphs dir in setup, twiddled with the scm
  
11set :application, 'gitorious'
22
3role :app, 'int.sonianarchive.com'
4role :web, 'int.sonianarchive.com'
5role :db, 'int.sonianarchive.com', :primary => true
3role :app, 'git.sonianarchive.com'
4role :web, 'git.sonianarchive.com'
5role :db, 'git.sonianarchive.com', :primary => true
66
77depend :remote, :command, 'gem'
88depend :remote, :gem, 'rails', '>=2.0.2'
1313depend :remote, :gem, 'chronic', '>=0.2.3'
1414depend :remote, :gem, 'rmagick', '>=2.3.0'
1515
16set :use_sudo, false
17set :user, 'git'
18set :deploy_to, "/var/www/#{application}"
19
2016set :scm, :git
21set :repository, "git@git.sonianarchive.com:#{application}/mainline.git"
22set :repository_cache, "git-cache"
2317set :ssh_options, { :forward_agent => true }
24set :deploy_via, :remote_cache
18set :repository, "/var/git/#{application}/mainline.git"
19set :repository_cache, "git-cache"
2520# set :branch, "master"
21set :deploy_to, "/var/www/#{application}"
22set :deploy_via, :remote_cache
2623
2724DATABASE_YML = ERB.new <<-EOF
2825base: &base
5252 run "mkdir -p #{shared_path}/config"
5353 put DATABASE_YML.result, "#{shared_path}/config/database.yml"
5454 put GITORIOUS_YML.result, "#{shared_path}/config/gitorious.yml"
55 run "umask 02 && mkdir -p #{shared_path}/public/images/graphs"
5556end
5657
5758after "deploy:update_code" do
6060 #{release_path}/config/database.yml"
6161 run "ln -nfs #{shared_path}/config/gitorious.yml \
6262 #{release_path}/config/gitorious.yml"
63 run "ln -nfs #{shared_path}/public/images/graphs \
64 #{release_path}/public/images/graphs"
6365end
6466
6567namespace :deploy do