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.
- data/lib/ms_deploy/recipes/unicorn.rb +10 -9
- data/lib/ms_deploy/version.rb +1 -1
- metadata +1 -1
@@ -7,19 +7,20 @@ Capistrano::Configuration.instance.load do
|
|
7
7
|
#require "capistrano-unicorn"
|
8
8
|
|
9
9
|
namespace :deploy do
|
10
|
-
desc
|
11
|
-
task :
|
12
|
-
|
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
|
16
|
-
task :
|
17
|
-
run "
|
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
|
21
|
-
task :
|
22
|
-
run "
|
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
|
data/lib/ms_deploy/version.rb
CHANGED