capistrano-deploy-management 0.1.36 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.37'
|
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
@@ -4,16 +4,18 @@ module CapistranoDeployManagement
|
|
4
4
|
configuration.load do
|
5
5
|
|
6
6
|
set(:unicorn_config) { "#{current_path}/config/unicorn.rb" }
|
7
|
-
|
8
|
-
set(:
|
7
|
+
# FIXME: Restarting fails, because PID does not exist -> symlink already points to new, empty folder
|
8
|
+
# set(:unicorn_pidfile) { "#{deploy_to}/shared/pids/unicorn.pid" }
|
9
|
+
# set(:unicorn_pid) { "cat #{deploy_to}/shared/pids/unicorn.pid" }
|
10
|
+
set(:unicorn_pidfile) { "#{previous_release}/tmp/pids/unicorn.pid" }
|
11
|
+
set(:unicorn_pid) { "cat #{previous_release}/tmp/pids/unicorn.pid" }
|
9
12
|
|
10
13
|
namespace :unicorn do
|
11
14
|
desc 'Restart unicorn.'
|
12
15
|
task :restart, :roles => :app do
|
13
|
-
#
|
14
|
-
#
|
15
|
-
unicorn.
|
16
|
-
unicorn.start
|
16
|
+
run "if [ -f #{unicorn_pidfile} ] && [ -e $(#{unicorn_pid}) ]; then #{try_sudo} kill -s USR2 $(#{unicorn_pid}); else cd #{current_path} && bundle exec unicorn -c #{unicorn_config} -E #{rails_env} -D; fi"
|
17
|
+
# unicorn.stop
|
18
|
+
# unicorn.start
|
17
19
|
end
|
18
20
|
|
19
21
|
desc 'Start unicorn.'
|
@@ -23,7 +25,7 @@ module CapistranoDeployManagement
|
|
23
25
|
|
24
26
|
desc 'Stop unicorn.'
|
25
27
|
task :stop, :roles => :app do
|
26
|
-
run "cd #{current_path} && test -s #{unicorn_pidfile} && #{try_sudo} kill $(#{unicorn_pid}) || echo 'Unicorn not running. Nothing to kill.'"
|
28
|
+
run "cd #{current_path} && test -s #{unicorn_pidfile} && #{try_sudo} kill -QUIT $(#{unicorn_pid}) || echo 'Unicorn not running. Nothing to kill.'"
|
27
29
|
end
|
28
30
|
end
|
29
31
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-deploy-management
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.37
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|