public
Description: Ze code behind the new toolmantim.com
Homepage: http://toolmantim.com/
Clone URL: git://github.com/toolmantim/toolmantim.git
toolmantim / Capfile
100644 25 lines (18 sloc) 0.52 kb
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
load 'deploy'
 
default_run_options[:pty] = true
 
set :application, 'toolmantim'
 
set :repository, "git://github.com/toolmantim/toolmantim.git"
set :deploy_to, "/var/www/toolmantim.com/app"
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 'spiderpig.toolmantim.com', :app, :web
 
namespace :deploy do
  task :restart do
    run "touch #{current_path}/tmp/restart.txt"
  end
end
 
after "deploy:restart", "deploy:cleanup"