capistrano-unicorn 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +15 -4
- data/README.md +6 -4
- data/lib/capistrano-unicorn/capistrano_integration.rb +0 -6
- data/lib/capistrano-unicorn/version.rb +1 -1
- metadata +9 -4
data/LICENSE
CHANGED
@@ -1,7 +1,18 @@
|
|
1
|
-
Copyright (c) 2011-
|
1
|
+
Copyright (c) 2011-2013 Dan Sosedoff.
|
2
2
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
5
|
+
the Software without restriction, including without limitation the rights to
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to
|
8
|
+
do so, subject to the following conditions:
|
4
9
|
|
5
|
-
The above copyright notice and this permission notice shall be included in all
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
6
12
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
14
|
+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
15
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
16
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
17
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
18
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -59,11 +59,13 @@ cap unicorn:reload
|
|
59
59
|
|
60
60
|
You can modify any of the following options in your `deploy.rb` config.
|
61
61
|
|
62
|
-
- `unicorn_env`
|
63
|
-
- `unicorn_pid`
|
64
|
-
- `unicorn_bin`
|
62
|
+
- `unicorn_env` - Set unicorn environment. Default to `rails_env` variable.
|
63
|
+
- `unicorn_pid` - Set unicorn PID file path. Default to `current_path/tmp/pids/unicorn.pid`
|
64
|
+
- `unicorn_bin` - Set unicorn executable file. Default to `unicorn`.
|
65
65
|
- `unicorn_bundle` - Set bundler command for unicorn. Default to `bundle`.
|
66
|
-
- `unicorn_user`
|
66
|
+
- `unicorn_user` - Launch unicorn master as the specified user. Default to `user` variable.
|
67
|
+
|
68
|
+
### Multistage
|
67
69
|
|
68
70
|
If you are using capistrano multistage, please refer to [Using capistrano unicorn with multistage environment](https://github.com/sosedoff/capistrano-unicorn/wiki/Using-capistrano-unicorn-with-multistage-environment).
|
69
71
|
|
@@ -79,7 +79,6 @@ module CapistranoUnicorn
|
|
79
79
|
#
|
80
80
|
def kill_unicorn(signal)
|
81
81
|
script = <<-END
|
82
|
-
set -x;
|
83
82
|
if #{unicorn_is_running?}; then
|
84
83
|
echo "Stopping Unicorn...";
|
85
84
|
#{unicorn_send_signal(signal)};
|
@@ -98,7 +97,6 @@ module CapistranoUnicorn
|
|
98
97
|
secondary_config_path = "#{current_path}/config/unicorn/#{unicorn_env}.rb"
|
99
98
|
|
100
99
|
script = <<-END
|
101
|
-
set -x;
|
102
100
|
if [ -e #{primary_config_path} ]; then
|
103
101
|
UNICORN_CONFIG_PATH=#{primary_config_path};
|
104
102
|
else
|
@@ -128,7 +126,6 @@ module CapistranoUnicorn
|
|
128
126
|
|
129
127
|
def duplicate_unicorn
|
130
128
|
script = <<-END
|
131
|
-
set -x;
|
132
129
|
if #{unicorn_is_running?}; then
|
133
130
|
echo "Duplicating Unicorn...";
|
134
131
|
#{unicorn_send_signal('USR2')};
|
@@ -180,7 +177,6 @@ module CapistranoUnicorn
|
|
180
177
|
desc 'Reload Unicorn'
|
181
178
|
task :reload, :roles => :app, :except => {:no_release => true} do
|
182
179
|
run <<-END
|
183
|
-
set -x;
|
184
180
|
if #{unicorn_is_running?}; then
|
185
181
|
echo "Reloading Unicorn...";
|
186
182
|
#{unicorn_send_signal('HUP')};
|
@@ -193,7 +189,6 @@ module CapistranoUnicorn
|
|
193
189
|
desc 'Add a new worker'
|
194
190
|
task :add_worker, :roles => :app, :except => {:no_release => true} do
|
195
191
|
run <<-END
|
196
|
-
set -x;
|
197
192
|
if #{unicorn_is_running?}; then
|
198
193
|
echo "Adding a new Unicorn worker...";
|
199
194
|
#{unicorn_send_signal('TTIN')};
|
@@ -206,7 +201,6 @@ module CapistranoUnicorn
|
|
206
201
|
desc 'Remove amount of workers'
|
207
202
|
task :remove_worker, :roles => :app, :except => {:no_release => true} do
|
208
203
|
run <<-END
|
209
|
-
set -x;
|
210
204
|
if #{unicorn_is_running?}; then
|
211
205
|
echo "Removing a Unicorn worker...";
|
212
206
|
#{unicorn_send_signal('TTOU')};
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-unicorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -71,17 +71,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- - ! '>='
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
|
+
segments:
|
75
|
+
- 0
|
76
|
+
hash: 4059242988459610769
|
74
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
78
|
none: false
|
76
79
|
requirements:
|
77
80
|
- - ! '>='
|
78
81
|
- !ruby/object:Gem::Version
|
79
82
|
version: '0'
|
83
|
+
segments:
|
84
|
+
- 0
|
85
|
+
hash: 4059242988459610769
|
80
86
|
requirements: []
|
81
87
|
rubyforge_project:
|
82
|
-
rubygems_version: 1.8.
|
88
|
+
rubygems_version: 1.8.25
|
83
89
|
signing_key:
|
84
90
|
specification_version: 3
|
85
91
|
summary: Unicorn integration for Capistrano
|
86
92
|
test_files: []
|
87
|
-
has_rdoc:
|