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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9243f7cec54d9268c6ee2eb060f7f3ccece5577
4
- data.tar.gz: 69ea621ee02faab6841c176478e19d7666c2af96
3
+ metadata.gz: f9a77eb91e0e030de22b1618903260853f3ab5ba
4
+ data.tar.gz: 50e9f0d190b7af8dd2a60929cb9572981b0f738a
5
5
  SHA512:
6
- metadata.gz: a55237b7a30a94b38c655bd9312b4e37cbaa11438c9fb6766a791546fed632df2af64d22d5d8ed1be8329bd01e250dec8d59a0d5bec591ca9dd71e0126314cdc
7
- data.tar.gz: f911bfe7035cafe0db9f035bf90893d609a6f1173e34013a6d8943f7603b3e6c2ba72aa842f069a223d91fa01a3e59f59bf1b93088b9a4a70a511c247743bddc
6
+ metadata.gz: fbbdc60a2b0be9d66d97e0e2e9b04354c8b96f07b23425887775dfe61dc411a69eda0eb38857b4ec802fa5bbc614c6c0944746dbc2ca7273098956905d582f67
7
+ data.tar.gz: 909d0f0ffd24c047aa8af4f7f8a58187cb609872178527d3241f1d41f5958d92593fd223233d07d9d32061742384d416d9b89abc6a52f4fb88d753cff4073990
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.0.6
2
+
3
+ - Buxfix; unicorn -E should be passed a RACK_ENV (not a RAILS_ENV). [More here](http://www.hezmatt.org/~mpalmer/blog/2013/10/13/rack_env-its-not-for-you)
4
+
1
5
  ### 0.0.5
2
6
 
3
7
  - Added `:unicorn_options`
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`:
@@ -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.5'
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(:rails_env), "-D", fetch(:unicorn_options)
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.5
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-03 00:00:00.000000000 Z
11
+ date: 2014-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano