ms_deploy 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,19 +7,20 @@ Capistrano::Configuration.instance.load do
7
7
  #require "capistrano-unicorn"
8
8
 
9
9
  namespace :deploy do
10
- desc 'Start unicorn'
11
- task :start, :roles => :app, :except => {:no_release => true} do
12
- run "cd #{current_path} && #{try_sudo} #{unicorn_bin} -c #{current_path}/#{unicorn_config} -E #{rails_env} -D"
10
+ desc "Zero-downtime restart of Unicorn"
11
+ task :restart, :except => { :no_release => true } do
12
+ stop
13
+ start
13
14
  end
14
15
 
15
- desc 'Stop unicorn'
16
- task :stop, :roles => :app, :except => {:no_release => true} do
17
- run "if [ -f #{current_path}/#{unicorn_pid} ]; then #{try_sudo} kill -QUIT `cat #{current_path}/#{unicorn_pid}`; fi"
16
+ desc "Start unicorn"
17
+ task :start, :except => { :no_release => true } do
18
+ run "cd #{current_path} && #{try_sudo} #{unicorn_bin} -c #{current_path}/#{unicorn_config} -E #{rails_env} -D"
18
19
  end
19
20
 
20
- desc 'Restart unicorn'
21
- task :restart, :roles => :app, :except => {:no_release => true} do
22
- run "cd #{current_path} && #{try_sudo} kill -USR2 `cat #{current_path}/#{unicorn_pid}`"
21
+ desc "Stop unicorn"
22
+ task :stop, :except => { :no_release => true } do
23
+ run "kill -s QUIT `cat #{shared_path}/pids/unicorn.pid`;exit 0"
23
24
  end
24
25
  end
25
26
  end
@@ -1,3 +1,3 @@
1
1
  module MsDeploy
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ms_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: