1 set :application, "lyrix"
2 set :repository, "git://repo.or.cz/lyrix.git"
3 set :user, "mattmoriarity"
5 # If you aren't deploying to /u/apps/#{application} on the target
6 # servers (which is the default), you can specify the actual location
7 # via the :deploy_to variable:
8 set :deploy_to, "/var/www/apps/#{application}"
10 # If you aren't using Subversion to manage your source code, specify
13 set :git_dir, "#{shared_path}/git"
19 role :db, domain, :primary => true
21 set :runner, "mattmoriarity"
23 before "deploy:setup", :db
24 after "deploy:update_code", "db:symlink"
27 desc "Create database yaml in shared path"
29 db_config = ERB.new <<-EOF
37 database: #{application}_dev
41 database: #{application}_test
45 database: #{application}_prod
49 run "mkdir -p #{shared_path}/config"
50 put db_config.result, "#{shared_path}/config/database.yml"
53 desc "Make symlink for database yaml"
55 run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
61 Sets up the git repository clones to :git_dir on the app servers.
63 task :git_clone, :except => { :no_release => true } do