Skip to content

Commit

Permalink
troubleshoot new relic + unicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
sudara committed Oct 9, 2011
1 parent 13759a5 commit 0ca4e54
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions config/unicorn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,11 @@

logger Logger.new("log/unicorn.log")

##
# Load the app into the master before forking workers for super-fast worker spawn times
# Not good for some apps, this causes the master to use slighty more ram than a
# worker process. Otherwise it is about 14MB
# can't convert strings to booleans
##
if config['UNICORN_PRELOAD_APP'] == 'true'
preload_app true
elsif config['UNICORN_PRELOAD_APP'] == 'false'
preload_app false
else

preload_app true
end

# REE - http://www.rubyenterpriseedition.com/faq.html#adapt_apps_for_cow
if config['APP_RUBY'] == 'ree'
Expand Down

0 comments on commit 0ca4e54

Please sign in to comment.