soprano 0.95 → 0.96
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/soprano/unicorn.rb +10 -2
- data/lib/soprano/version.rb +1 -1
- metadata +2 -2
data/lib/soprano/unicorn.rb
CHANGED
@@ -11,6 +11,14 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
11
11
|
fetch(:unicorn_pid, "#{deploy_to}/shared/pids/unicorn.pid")
|
12
12
|
end
|
13
13
|
|
14
|
+
def restart_signal
|
15
|
+
fetch(:restart_signal, 'USR2')
|
16
|
+
end
|
17
|
+
|
18
|
+
def kill_signal
|
19
|
+
fetch(:kill_signal, 'QUIT')
|
20
|
+
end
|
21
|
+
|
14
22
|
namespace :deploy do
|
15
23
|
desc "Start application."
|
16
24
|
task :start, :roles => :app do
|
@@ -19,12 +27,12 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
19
27
|
|
20
28
|
desc "Stop application."
|
21
29
|
task :stop, :roles => :app do
|
22
|
-
run "if [ -f #{unicorn_pid} ] && [ -e /proc/$(cat #{unicorn_pid}) ]; then kill
|
30
|
+
run "if [ -f #{unicorn_pid} ] && [ -e /proc/$(cat #{unicorn_pid}) ]; then kill -#{kill_signal} `cat #{unicorn_pid}`; fi"
|
23
31
|
end
|
24
32
|
|
25
33
|
desc "Restart application."
|
26
34
|
task :restart, :roles => :app do
|
27
|
-
run "if [ -f #{unicorn_pid} ] && [ -e /proc/$(cat #{unicorn_pid}) ]; then kill
|
35
|
+
run "if [ -f #{unicorn_pid} ] && [ -e /proc/$(cat #{unicorn_pid}) ]; then kill -#{restart_signal} `cat #{unicorn_pid}`; else cd #{current_path} && #{unicorn_bin} -c #{unicorn_conf} -E #{rails_env} -D; fi"
|
28
36
|
end
|
29
37
|
end
|
30
38
|
|
data/lib/soprano/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soprano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.96'
|
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-10-
|
12
|
+
date: 2012-10-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|