1 set
:application, 'my_app_name'
2 set
:repo_url, 'git@example.com:me/my_repo.git'
4 # ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }
6 # set :deploy_to, '/var/www/my_app'
10 # set :log_level, :debug
13 # set :linked_files, %w{config/database.yml}
14 # set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}
16 # set :default_env, { path: "/opt/ruby/bin:$PATH" }
17 # set :keep_releases, 5
21 desc
'Restart application'
23 on
roles(:app), in: :sequence, wait
: 5 do
24 # Your restart mechanism here, for example:
25 # execute :touch, release_path.join('tmp/restart.txt')
29 after
:restart, :clear_cache do
30 on
roles(:web), in: :groups, limit
: 3, wait
: 10 do
31 # Here we can do anything such as:
32 # within release_path do
33 # execute :rake, 'cache:clear'
38 after
:finishing, 'deploy:cleanup'