-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCapfile
More file actions
32 lines (26 loc) · 701 Bytes
/
Capfile
File metadata and controls
32 lines (26 loc) · 701 Bytes
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
load 'deploy' if respond_to?(:namespace)
default_run_options[:pty] = true
# be sure to change these
set :user, 'djvirgen'
set :domain, 'virgentech.com'
set :application, 'media'
# the rest should be good
set :repository,
"#{user}@#{domain}:git/ruby-philed.git"
set :deploy_to,
"/home/#{user}/sites/ruby/#{application}.#{domain}"
set :deploy_via, :remote_cache
set :scm, 'git'
set :branch, 'master'
set :git_shallow_clone, 1
set :scm_verbose, true
set :use_sudo, false
server domain, :app, :web
namespace :deploy do
task :restart do
run "touch #{current_path}/tmp/restart.txt"
end
end
namespace :populate do
run "ln -s /home/#{user}/media/music #{current_path}/media/music"
end