dark-capistrano-recipes 0.6.15 → 0.6.16
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/dark-capistrano-recipes.gemspec +1 -1
- data/doc/god/god.conf +3 -3
- data/lib/recipes/application.rb +0 -1
- data/lib/recipes/god.rb +1 -1
- metadata +3 -3
data/VERSION.yml
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dark-capistrano-recipes}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.16"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Phil Misiowiec", "Leonardo Bighetti"]
|
data/doc/god/god.conf
CHANGED
@@ -64,13 +64,13 @@ def generic_monitor(w, config, rails_root, options = {})
|
|
64
64
|
w.transition(:up, :restart) do |on|
|
65
65
|
on.condition(:memory_usage) do |c|
|
66
66
|
c.interval = 20
|
67
|
-
c.above =
|
67
|
+
c.above = options[:memory_limit] || 150.megabytes
|
68
68
|
c.times = [3, 5]
|
69
69
|
end
|
70
70
|
|
71
71
|
on.condition(:cpu_usage) do |c|
|
72
|
-
c.interval =
|
73
|
-
c.above =
|
72
|
+
c.interval = 20
|
73
|
+
c.above = options[:cpu_limit] || 50.percent
|
74
74
|
c.times = [3, 5]
|
75
75
|
end
|
76
76
|
end
|
data/lib/recipes/application.rb
CHANGED
@@ -9,7 +9,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
9
9
|
set :app_server, :unicorn unless exists?(:app_server)
|
10
10
|
set :web_server, :nginx unless exists?(:web_server)
|
11
11
|
set :runner, user unless exists?(:runner)
|
12
|
-
|
13
12
|
# The port to listen to, normally we default to 80
|
14
13
|
set :application_port, 80 unless exists?(:application_port)
|
15
14
|
|
data/lib/recipes/god.rb
CHANGED
@@ -80,7 +80,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
80
80
|
|
81
81
|
desc "Restarts the app server"
|
82
82
|
task :app, :roles => :app, :except => { :no_release => true } do
|
83
|
-
sudo "#{bin_god} restart #{
|
83
|
+
sudo "#{bin_god} restart #{application}-#{app_server.to_s.downcase}"
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dark-capistrano-recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 39
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 16
|
10
|
+
version: 0.6.16
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Phil Misiowiec
|