Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
load env variables when starting services
Browse files Browse the repository at this point in the history
dwradcliffe committed Jun 20, 2014
1 parent 1ff84cb commit 0d65b24
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -162,7 +162,7 @@ GRAPH
rubygems-sensu (>= 0.0.0)
rubygems-ssh (>= 0.0.0)
rubygems-utility (>= 0.0.0)
rubygems-app (0.0.14)
rubygems-app (0.0.15)
apt (>= 0.0.0)
chef-vault (>= 0.0.0)
git (>= 0.0.0)
2 changes: 1 addition & 1 deletion cookbooks/rubygems-app/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'rubygems-app'

version '0.0.14'
version '0.0.15'

depends 'apt'
depends 'chef-vault'
Original file line number Diff line number Diff line change
@@ -5,5 +5,6 @@ cd /applications/rubygems/current
exec 2>&1
exec <%= node[:runit][:chpst_bin] %> \
-u <%= @options[:owner] %>:<%= @options[:group] %> \
-e <%= node[:runit][:sv_dir] %>/delayed_job/env \
<%= @options[:bundle_command] %> exec \
rake jobs:work
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ cd /applications/rubygems/current
exec 2>&1
exec <%= node[:runit][:chpst_bin] %> \
-u <%= @options[:owner] %>:<%= @options[:group] %> \
-e <%= node[:runit][:sv_dir] %>/unicorn/env \
<%= @options[:bundle_command] %> exec \
<%= @options[:smells_like_rack] ? 'unicorn' : 'unicorn_rails' %> \
-E <%= @options[:rails_env] %> \

0 comments on commit 0d65b24

Please sign in to comment.