1 set :application, "lyrix"
2 set :repository, "git://repo.or.cz/lyrix.git"
3 set :user, "jcmcarpetcare"
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, "/home/#{user}/sites/#{application}"
10 # If you aren't using Subversion to manage your source code, specify
13 set :scm_command, "~/bin/git"
14 set :git_dir, "#{shared_path}/git"
17 #set :deploy_via, :copy
19 set :domain, "jcmcarpetcare.com"
23 role :db, domain, :primary => true
27 before "deploy:setup", :db
28 after "deploy:update_code", "db:symlink"
31 desc "Create database yaml in shared path"
33 db_config = ERB.new <<-EOF
41 database: #{application}_dev
45 database: #{application}_test
49 database: #{application}_prod
53 run "mkdir -p #{shared_path}/config"
54 put db_config.result, "#{shared_path}/config/database.yml"
57 desc "Make symlink for database yaml"
59 run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
65 Sets up the git repository clones to :git_dir on the app servers.
67 task :git_clone, :except => { :no_release => true } do