capistrano-sidekiq 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a62b2fe9026955663fd38cbd5172cea2ffaa187d
|
4
|
+
data.tar.gz: 5bcf7e35d0415ca7387399d6ffc232cf7315c1ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec165a6a831d201137aad666c710f1ff086fb00617d9278c079253d23f5930e434bf4addb8be3833f9f6b7a613f74ff038c96d5c6d1a35dc6682918e3ae7a348
|
7
|
+
data.tar.gz: 58ed4ce25f611099bfbd33a8ef0516ac1ffc826505c6a57819aa91cd57876af7244300a52f6a9c60b55b68d415491f8e4cb4e610870dd1c1cb922f9ebf6ad35c
|
data/README.md
CHANGED
@@ -54,6 +54,9 @@ There is a know bug that prevent sidekiq from starting when pty is true
|
|
54
54
|
set :pty, false
|
55
55
|
```
|
56
56
|
## Changelog
|
57
|
+
- 0.3.7:
|
58
|
+
* fix capistrano2 task @tribble
|
59
|
+
* Run Sidekiq as daemon from Monit @dpaluy
|
57
60
|
- 0.3.5: Added :sidekiq_tag for capistrano2 @OscarBarrett
|
58
61
|
- 0.3.4: fix bug in sidekiq:start for capistrano 2 task
|
59
62
|
- 0.3.3: sidekiq:restart after deploy:restart added to default hooks
|
@@ -40,7 +40,7 @@ Capistrano::Configuration.instance.load do
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def stop_process(pid_file, idx)
|
43
|
-
run "if [ -d #{current_path} ] && [ -f #{pid_file} ] && kill -0 `cat #{pid_file}`> /dev/null 2>&1; then cd #{current_path} && #{fetch(:sidekiqctl_cmd)} stop #{pid_file} #{fetch :sidekiq_timeout} ; else echo 'Sidekiq is not running'; fi"
|
43
|
+
run "if [ -d #{current_path} ] && [ -f #{pid_file} ] && kill -0 `cat #{pid_file}`> /dev/null 2>&1; then cd #{current_path} && #{fetch(:sidekiqctl_cmd)} stop #{pid_file} #{fetch :sidekiq_timeout} ; else echo 'Sidekiq is not running' && if [ -f #{pid_file} ] ; then rm #{pid_file} ; fi ; fi"
|
44
44
|
end
|
45
45
|
|
46
46
|
def start_process(pid_file, idx)
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<% processes_pids.each_with_index do |pid_file, idx| %>
|
3
3
|
check process <%= sidekiq_service_name(idx) %>
|
4
4
|
with pidfile "<%= pid_file %>"
|
5
|
-
start program = "/usr/bin/sudo -u <%= @role.user %> /bin/bash -c 'cd <%= current_path %> && <%= SSHKit.config.command_map[:bundle] %> exec sidekiq <% if fetch(:sidekiq_config) %> -C <%= fetch(:sidekiq_config) %> <% end %> -P <%= pid_file %>'" with timeout 30 seconds
|
5
|
+
start program = "/usr/bin/sudo -u <%= @role.user %> /bin/bash -c 'cd <%= current_path %> && <%= SSHKit.config.command_map[:bundle] %> exec sidekiq <% if fetch(:sidekiq_config) %> -C <%= fetch(:sidekiq_config) %> <% end %> -P <%= pid_file %>' -d" with timeout 30 seconds
|
6
6
|
stop program = "/usr/bin/sudo -u <%= @role.user %> /bin/bash -c 'cd <%= current_path %> && <%= SSHKit.config.command_map[:bundle] %> exec sidekiqctl stop <%= pid_file %>'" with timeout <%= fetch(:sidekiq_timeout).to_i + 10 %> seconds
|
7
7
|
group <%= fetch(:sidekiq_monit_group, fetch(:application)) %>-sidekiq
|
8
8
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abdelkader Boudih
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|