Sha256: 95b400f825461c0c939ae92aaf2ddafe2a2601f9296f8e236824a2fe061ddfa9
Contents?: true
Size: 583 Bytes
Versions: 1
Compression:
Stored size: 583 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 :mkdir, '-p', release_path.join('tmp') 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.2 | lib/capistrano/tasks/passenger.cap |