heroku_dj_auto_scale 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +14 -0
- data/heroku_dj_auto_scale.gemspec +0 -1
- data/lib/heroku_dj_auto_scale/version.rb +1 -1
- metadata +5 -19
data/README.textile
CHANGED
@@ -4,6 +4,20 @@ Deroku_dj_auto_scale allows automatic scaling of Delayed Job workers on Heroku (
|
|
4
4
|
|
5
5
|
h2. Setup
|
6
6
|
|
7
|
+
Add the following to the class that will have auto-scalling DJ workers
|
8
|
+
|
9
|
+
<pre>
|
10
|
+
class Mailer < ActionMailer::Base
|
11
|
+
extend HerokuDJAutoScale
|
12
|
+
|
13
|
+
def my_function
|
14
|
+
etc
|
15
|
+
end
|
16
|
+
|
17
|
+
...
|
18
|
+
end
|
19
|
+
</pre>
|
20
|
+
|
7
21
|
You need to define the following variables in your config/environments/production.rb
|
8
22
|
|
9
23
|
<pre>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heroku_dj_auto_scale
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joel Basson
|
@@ -32,24 +32,10 @@ dependencies:
|
|
32
32
|
version: "0"
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: delayed_job
|
37
|
-
prerelease: false
|
38
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
hash: 3
|
44
|
-
segments:
|
45
|
-
- 0
|
46
|
-
version: "0"
|
47
|
-
type: :runtime
|
48
|
-
version_requirements: *id002
|
49
35
|
- !ruby/object:Gem::Dependency
|
50
36
|
name: bundler
|
51
37
|
prerelease: false
|
52
|
-
requirement: &
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
53
39
|
none: false
|
54
40
|
requirements:
|
55
41
|
- - ">="
|
@@ -63,7 +49,7 @@ dependencies:
|
|
63
49
|
- 6
|
64
50
|
version: 1.0.0.rc.6
|
65
51
|
type: :development
|
66
|
-
version_requirements: *
|
52
|
+
version_requirements: *id002
|
67
53
|
description: Allows auto-scaling of delayed job workers in Heroku
|
68
54
|
email: []
|
69
55
|
|