capistrano-deploy-management 0.1.34 → 0.1.35
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = 'capistrano-deploy-management'
|
4
4
|
s.description = 'Collection of Capistrano recipes for deploying Rails apps into high-performance environments'
|
5
|
-
s.version = '0.1.
|
5
|
+
s.version = '0.1.35'
|
6
6
|
s.platform = Gem::Platform::RUBY
|
7
7
|
s.authors = ['Dominik Rodler']
|
8
8
|
s.email = ['dominik.rodler@gmail.com']
|
data/changelog.md
CHANGED
@@ -11,7 +11,7 @@ module CapistranoDeployManagement
|
|
11
11
|
desc 'Restart unicorn.'
|
12
12
|
task :restart, :roles => :app do
|
13
13
|
# FIXME: PID does not exist, thus restarting fails
|
14
|
-
# run "
|
14
|
+
# run "#{try_sudo} kill -s USR2 $(#{unicorn_pid})"
|
15
15
|
unicorn.stop
|
16
16
|
unicorn.start
|
17
17
|
end
|
@@ -23,8 +23,7 @@ module CapistranoDeployManagement
|
|
23
23
|
|
24
24
|
desc 'Stop unicorn.'
|
25
25
|
task :stop, :roles => :app do
|
26
|
-
|
27
|
-
run "cd #{current_path} && test -s #{unicorn_pidfile} && kill $(#{unicorn_pid}) || echo 'Unicorn not running. Nothing to kill.'"
|
26
|
+
run "cd #{current_path} && test -s #{unicorn_pidfile} && #{}{try_sudo} kill $(#{unicorn_pid}) || echo 'Unicorn not running. Nothing to kill.'"
|
28
27
|
end
|
29
28
|
end
|
30
29
|
|