caploy 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -118,7 +118,8 @@ module Unicorn
|
|
|
118
118
|
'stage' => stage,
|
|
119
119
|
'unicorn_listen_backlog' => unicorn_listen_backlog,
|
|
120
120
|
'unicorn_worker_processes' => unicorn_worker_processes,
|
|
121
|
-
'sidekiq_redis_count' => sidekiq_redis_count
|
|
121
|
+
'sidekiq_redis_count' => sidekiq_redis_count,
|
|
122
|
+
'sidekiq_redis_url' => sidekiq_redis_url
|
|
122
123
|
}
|
|
123
124
|
put(render_erb_template(template_path, vars), config_path)
|
|
124
125
|
end
|
|
@@ -38,7 +38,11 @@ after_fork do |server, worker|
|
|
|
38
38
|
|
|
39
39
|
if defined?(Sidekiq)
|
|
40
40
|
Sidekiq.configure_client do |config|
|
|
41
|
+
<% if sidekiq_redis_url %>
|
|
42
|
+
config.redis = { :url => <%= sidekiq_redis_url %>, :size => <%= sidekiq_redis_count %> }
|
|
43
|
+
<% else %>
|
|
41
44
|
config.redis = { :size => <%= sidekiq_redis_count %> }
|
|
45
|
+
<% end %>
|
|
42
46
|
end
|
|
43
47
|
end
|
|
44
48
|
end
|
data/lib/caploy/version.rb
CHANGED
metadata
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
name: caploy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.1.
|
|
5
|
+
version: 0.1.8
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Michael Schiller
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-02-
|
|
12
|
+
date: 2013-02-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: gemcutter
|