tvd-unicorn 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -5,14 +5,17 @@ shift # get rid of unicorn argument
5
5
  export PATH="/data/zendesk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
6
6
  export UNICORN_PID=<%= File.join(node[:project_dir], node[:run_dir], "unicorn.pid") %>
7
7
  export HOME="<%= node[:home_dir] %>"
8
+ shome="<%= node[:release_dir] %>"
9
+ rhome="<%= node[:release_dir]/service/unicorn %>
8
10
 
9
11
  case $1 in
10
12
  start*)
11
13
  unset LS_COLORS
12
14
  unset BUNDLE_GEMFILE GEM_PATH GEM_HOME RUBYOPT
13
15
 
16
+ cd $shome
14
17
  <%= node[:ruby_loader] %> <%= node[:app_ruby] %> bundle check 2>&1 >/dev/null || { bundle install --quiet --local --path vendor/bundle || bundle check > /dev/null; }
15
- exec <%= node[:ruby_loader] %> <%= node[:app_ruby] %> bundle exec <%= node[:unicorn_exec] %> -c <%= File.join(node[:project_dir], node[:app_dir], "config", "unicorn.rb") %> -E <%= node[:app_env] %> -D
18
+ exec chpst -e $rhome/env <%= node[:ruby_loader] %> <%= node[:app_ruby] %> "$shome/bin/local-helper" <%= node[:unicorn_exec] %> -c <%= File.join(node[:project_dir], node[:app_dir], "config", "unicorn.rb") %> -E <%= node[:app_env] %> -D
16
19
  ;;
17
20
 
18
21
  stop*)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tvd-unicorn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
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: 2012-09-05 00:00:00.000000000 Z
12
+ date: 2012-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: microwave