Sha256: 7586da516dfc31b5b657e51a22d9cd5cafb3f123e2d35e1ab00edda82cf5eabb
Contents?: true
Size: 318 Bytes
Versions: 5
Compression:
Stored size: 318 Bytes
Contents
namespace :deploy do desc 'Restart unicorn application' %w(start stop force-stop kill_worker restart upgrage reopen-logs).each do |command| task command.to_sym do on roles(:app), in: :sequence, wait: 5 do sudo "/etc/init.d/unicorn_#{fetch(:full_app_name)} #{command}" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems