capistrano3-unicorn 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +4 -0
- data/capistrano3-unicorn.gemspec +1 -1
- data/lib/capistrano3/tasks/unicorn.rake +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9a77eb91e0e030de22b1618903260853f3ab5ba
|
4
|
+
data.tar.gz: 50e9f0d190b7af8dd2a60929cb9572981b0f738a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbbdc60a2b0be9d66d97e0e2e9b04354c8b96f07b23425887775dfe61dc411a69eda0eb38857b4ec802fa5bbc614c6c0944746dbc2ca7273098956905d582f67
|
7
|
+
data.tar.gz: 909d0f0ffd24c047aa8af4f7f8a58187cb609872178527d3241f1d41f5958d92593fd223233d07d9d32061742384d416d9b89abc6a52f4fb88d753cff4073990
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -34,6 +34,10 @@ You can override the defaults by `set :unicorn_example, value` in the `config/de
|
|
34
34
|
|
35
35
|
Set any additional options to be passed to unicorn on startup. Defaults to none
|
36
36
|
|
37
|
+
- `:unicorn_rack_env`
|
38
|
+
|
39
|
+
Set the RACK_ENV. Defaults to deployment unless the RAILS_ENV is development. Valid options are "development", "deployment", or "none". See the [RACK ENVIRONMENT](http://unicorn.bogomips.org/unicorn_1.html) section of the unicorn documentation for more information.
|
40
|
+
|
37
41
|
### Setup
|
38
42
|
|
39
43
|
Add the library to your `Gemfile`:
|
data/capistrano3-unicorn.gemspec
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = "capistrano3-unicorn"
|
6
|
-
gem.version = '0.0.
|
6
|
+
gem.version = '0.0.6'
|
7
7
|
gem.authors = ["Matthew Lineen"]
|
8
8
|
gem.email = ["matthew@lineen.com"]
|
9
9
|
gem.description = "Unicorn specific Capistrano tasks"
|
@@ -5,6 +5,7 @@ namespace :load do
|
|
5
5
|
set :unicorn_restart_sleep_time, 3
|
6
6
|
set :unicorn_roles, -> { :app }
|
7
7
|
set :unicorn_options, -> { '' }
|
8
|
+
set :unicorn_rack_env, -> { fetch(:rails_env) == 'development' ? 'development' : 'deployment' }
|
8
9
|
end
|
9
10
|
end
|
10
11
|
|
@@ -17,7 +18,7 @@ namespace :unicorn do
|
|
17
18
|
if test("[ -e #{fetch(:unicorn_pid)} ] && kill -0 #{pid}")
|
18
19
|
info "unicorn is running..."
|
19
20
|
else
|
20
|
-
execute :bundle, "exec unicorn", "-c", fetch(:unicorn_config_path), "-E", fetch(:
|
21
|
+
execute :bundle, "exec unicorn", "-c", fetch(:unicorn_config_path), "-E", fetch(:unicorn_rack_env), "-D", fetch(:unicorn_options)
|
21
22
|
end
|
22
23
|
end
|
23
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano3-unicorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Lineen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|