Sha256: 2d4bd61aa8f2b1f5d4344fcb1d76cf91fe782cfd1040056530cd5b9cb396ec36

Contents?: true

Size: 991 Bytes

Versions: 20

Compression:

Stored size: 991 Bytes

Contents

set :application, 'my_app_name'
set :repo_url, 'git@example.com:me/my_repo.git'

# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }

# set :deploy_to, '/var/www/my_app'
# set :scm, :git

# set :format, :pretty
# set :log_level, :debug
# set :pty, true

# set :linked_files, %w{config/database.yml}
# set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}

# set :default_env, { path: "/opt/ruby/bin:$PATH" }
# set :keep_releases, 5

namespace :deploy do

  desc 'Restart application'
  task :restart do
    on roles(:app), in: :sequence, wait: 5 do
      # Your restart mechanism here, for example:
      # execute :touch, release_path.join('tmp/restart.txt')
    end
  end

  after :restart, :clear_cache do
    on roles(:web), in: :groups, limit: 3, wait: 10 do
      # Here we can do anything such as:
      # within release_path do
      #   execute :rake, 'cache:clear'
      # end
    end
  end

  after :finishing, 'deploy:cleanup'

end

Version data entries

20 entries across 11 versions & 3 rubygems

Version Path
capitomcat-1.2.1 examples/recipe/customizing/config/deploy.rb
capitomcat-1.2.1 examples/recipe/multistage/config/deploy.rb
capitomcat-1.2.0 examples/recipe/multistage/config/deploy.rb
capitomcat-1.2.0 examples/recipe/customizing/config/deploy.rb
capitomcat-1.1.4 examples/recipe/multistage/config/deploy.rb
capitomcat-1.1.4 examples/recipe/customizing/config/deploy.rb
capitomcat-1.1.3 examples/recipe/multistage/config/deploy.rb
capitomcat-1.1.3 examples/recipe/customizing/config/deploy.rb
capitomcat-1.1.2 examples/recipe/customizing/config/deploy.rb
capitomcat-1.1.2 examples/recipe/multistage/config/deploy.rb
capitomcat-1.1.1 examples/recipe/customizing/config/deploy.rb
capitomcat-1.1.1 examples/recipe/multistage/config/deploy.rb
capitomcat-1.1.0 examples/recipe/customizing/config/deploy.rb
capitomcat-1.1.0 examples/recipe/multistage/config/deploy.rb
capitomcat-1.0.1 examples/recipe/customizing/config/deploy.rb
capitomcat-1.0.1 examples/recipe/multistage/config/deploy.rb
motorurl-0.0.1 spec/dummy/config/deploy.rb
capitomcat-1.0.0 examples/recipe/multistage/config/deploy.rb
capitomcat-1.0.0 examples/recipe/customizing/config/deploy.rb
capistrano-3.0.1 lib/capistrano/templates/deploy.rb.erb