capistrano-deploy-management 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
data/changelog.md
CHANGED
@@ -3,8 +3,9 @@ module CapistranoDeployManagement
|
|
3
3
|
def self.load_into(configuration)
|
4
4
|
configuration.load do
|
5
5
|
|
6
|
-
set(:puma_config)
|
7
|
-
set(:puma_pidfile) { "
|
6
|
+
set(:puma_config) { "#{current_path}/config/puma.rb" }
|
7
|
+
set(:puma_pidfile) { "#{deploy_to}/shared/pids/puma.pid" }
|
8
|
+
set(:puma_pid) { "cat #{deploy_to}/shared/pids/puma.pid" }
|
8
9
|
|
9
10
|
namespace :puma do
|
10
11
|
desc 'Restart puma.'
|
@@ -15,12 +16,12 @@ module CapistranoDeployManagement
|
|
15
16
|
|
16
17
|
desc 'Start puma.'
|
17
18
|
task :start, :roles => :app, :except => {:no_release => true} do
|
18
|
-
run "cd #{current_path} && puma -
|
19
|
+
run "cd #{current_path} && puma -C #{puma_pidfile} -D"
|
19
20
|
end
|
20
21
|
|
21
22
|
desc 'Stop puma.'
|
22
23
|
task :stop, :roles => :app, :except => {:no_release => true} do
|
23
|
-
run "cd #{current_path} && kill $(#{
|
24
|
+
run "cd #{current_path} && kill $(#{puma_pid})"
|
24
25
|
end
|
25
26
|
end
|
26
27
|
|