Sha256: d50b202ba3f023b6d2b67ca26f88bb0256078ef80d10b0c4e72266d01672263c

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 Bytes

Contents

namespace :deploy do
  desc 'Restart application'
  task :restart do
    on roles(fetch(:passenger_roles)), in: fetch(:passenger_restart_runner), wait: fetch(:passenger_restart_wait), limit: fetch(:passenger_restart_limit) do
      execute :touch, release_path.join('tmp/restart.txt')
    end
  end
  after :publishing, :restart
end

namespace :load do
  task :defaults do
    set :passenger_roles, :app
    set :passenger_restart_runner, :sequence
    set :passenger_restart_wait, 5
    set :passenger_restart_limit, 2
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-passenger-0.0.1 lib/capistrano/tasks/passenger.cap