capistrano-unicorn-nginx 3.3.2 → 3.3.3

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: 720a604c0226c038d3e5abe3e1d49980eac3d172
4
- data.tar.gz: 75db144d492da37337c3d8bfad21d1f8323c73ec
3
+ metadata.gz: 0bb3ef3f0c2a5ffce9901e6c13e7429d6580afe7
4
+ data.tar.gz: b10988520574834d2e1c1a656d4d6061a46f4ab6
5
5
  SHA512:
6
- metadata.gz: f1cea9b4ea3a93d73c5750be432d909b1bd1d43a0cd9ded9783ba51cc9f2a16c210944d2ab982f62a8d256ca7d61d4a112193d73e18aae652505f9fb39c7a6a6
7
- data.tar.gz: 0c3459d9aed1b129c85668ce47205e13e24afa3ec085281c0e99d4effe408e141a533053e823a66723c4e460815782e8b3f294e102f1ecfc95b1e0445ac13f9c
6
+ metadata.gz: 6036237105e57ca6cff51ac0c715fb255e152768db9cee5fbf7f3d960235da3e9876f5c73caa76aee759de1ef1fc92c52f7ad7187b27ddc4c4320e629920634c
7
+ data.tar.gz: 72015998373a8de90105f89ae0b787c97b40d3d7323058e350fbb2ed3be1b74335d11c72735641fd1a844194ff7f440b285ae26ca455d44872d64e9d42a2c43a
data/.gitignore CHANGED
@@ -16,3 +16,4 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  /vendor/ruby
19
+ .idea
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ### master
4
4
 
5
+ ### v3.3.3, 2015-05-05
6
+ - add `unicorn_env` option for passing environmental variables to unicorn (@rhomeister)
7
+
5
8
  ### v3.3.2, 2015-02-16
6
9
  - bug fix: replaced non-existent `log_dir` with `unicorn_log_dir` (@rhomeister)
7
10
 
@@ -12,6 +12,7 @@ namespace :load do
12
12
  set :unicorn_config, -> { unicorn_default_config_file }
13
13
  set :unicorn_logrotate_config, -> { unicorn_default_logrotate_config_file }
14
14
  set :unicorn_workers, 2
15
+ set :unicorn_env, "" # environmental variables passed to unicorn/Ruby. Useful for GC tweaking, etc
15
16
  set :unicorn_worker_timeout, 30
16
17
  set :unicorn_tcp_listen_port, 8080
17
18
  set :unicorn_use_tcp, -> { roles(:app, :web).count > 1 } # use tcp if web and app nodes are on different servers
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module UnicornNginx
3
- VERSION = "3.3.2"
3
+ VERSION = "3.3.3"
4
4
  end
5
5
  end
@@ -16,7 +16,8 @@ APP_ROOT=<%= current_path %>
16
16
  PID=<%= fetch(:unicorn_pid) %>
17
17
 
18
18
  AS_USER=<%= fetch(:unicorn_user) %>
19
- CMD="export HOME; true "${HOME:=$(getent passwd "$AS_USER" | cut -d: -f6;)}" ; cd $APP_ROOT && <%= bundle_unicorn("-D -c", fetch(:unicorn_config), "-E", fetch(:unicorn_app_env)) %>"
19
+ UNICORN_ENV="<%= fetch(:unicorn_env) %>"
20
+ CMD="export HOME; true "${HOME:=$(getent passwd "$AS_USER" | cut -d: -f6;)}" ; cd $APP_ROOT && $UNICORN_ENV <%= bundle_unicorn("-D -c", fetch(:unicorn_config), "-E", fetch(:unicorn_app_env)) %>"
20
21
 
21
22
  set -u
22
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-unicorn-nginx
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.2
4
+ version: 3.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Stranders
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-16 00:00:00.000000000 Z
12
+ date: 2015-05-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano