capistrano-deploy-management 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
data/changelog.md
CHANGED
@@ -9,19 +9,19 @@ module CapistranoDeployManagement
|
|
9
9
|
|
10
10
|
namespace :unicorn do
|
11
11
|
desc 'Restart unicorn.'
|
12
|
-
task :restart, :roles => :app
|
13
|
-
|
12
|
+
task :restart, :roles => :app do
|
13
|
+
unicorn.stop
|
14
14
|
unicorn.start
|
15
15
|
# run "cd #{current_path} && kill -USR2 #{unicorn_pid}"
|
16
16
|
end
|
17
17
|
|
18
18
|
desc 'Start unicorn.'
|
19
|
-
task :start, :roles => :app
|
19
|
+
task :start, :roles => :app do
|
20
20
|
run "cd #{current_path} && unicorn -c #{unicorn_config} -E production -D"
|
21
21
|
end
|
22
22
|
|
23
23
|
desc 'Stop unicorn.'
|
24
|
-
task :stop, :roles => :app
|
24
|
+
task :stop, :roles => :app do
|
25
25
|
# run "if test -s #{unicorn_pidfile}; then cd #{current_path} && kill $(#{unicorn_pid}) fi"
|
26
26
|
# above line fails with error -c: line 1: syntax error: unexpected end of file
|
27
27
|
run "cd #{current_path} && kill -QUIT $(#{unicorn_pid})"
|