-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCapfile
41 lines (29 loc) · 836 Bytes
/
Capfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
set :deploy_to, "/var/www/webdev101.makandra.de"
set :user, "deploy-webdev_p"
set :use_sudo, false
set :deploy_via, :remote_cache
set :copy_exclude, [ '.git' ]
set :clear_cache, :false
set :repository, "[email protected]:makandra/webdev101.git"
set :scm, :git
server "app01-prod.sharedhosting.makandra.de", :app, :web, :primary => true
server "app02-prod.sharedhosting.makandra.de", :app, :web
ssh_options[:forward_agent] = true
namespace :deploy do
task :restart do
end
task :start do
end
task :stop do
end
task :migrate do
end
task :finalize_update do
end
end
task :fix_remote_cache, :role => :app do
if fetch(:deploy_via) == :remote_cache
run "cd #{shared_path}/cached-copy; git remote set-url origin #{fetch(:repository)}"
end
end