diff options
author | Jonne Haß <me@jhass.eu> | 2015-05-07 23:07:22 +0300 |
---|---|---|
committer | Jonne Haß <me@jhass.eu> | 2015-05-07 23:07:22 +0300 |
commit | f0d51e24b8908714cd49dd98f10d68e3b54adcee (patch) | |
tree | 127360afd1e02ec3b2f6e5af384eb6a5b93cfc31 /config/unicorn.rb | |
parent | 06e6e1db78fb7fcb177ae1f373fc841f68d18323 (diff) |
Fix invalid setting calls in config/unicorn.rb
* .present? is an AS extension that isn't loaded at this point
* single_process_mode is defined in environment, not at the toplevel
Diffstat (limited to 'config/unicorn.rb')
-rw-r--r-- | config/unicorn.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/unicorn.rb b/config/unicorn.rb index 719c357c2..28ee4afc7 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -18,15 +18,15 @@ timeout AppConfig.server.unicorn_timeout.to_i #listen '/var/run/diaspora/diaspora.sock', :backlog => 2048 -stderr_path AppConfig.server.stderr_log.get if AppConfig.server.stderr_log.present? -stdout_path AppConfig.server.stdout_log.get if AppConfig.server.stdout_log.present? +stderr_path AppConfig.server.stderr_log.get if AppConfig.server.stderr_log? +stdout_path AppConfig.server.stdout_log.get if AppConfig.server.stdout_log? before_fork do |server, worker| # If using preload_app, enable this line ActiveRecord::Base.connection.disconnect! # disconnect redis if in use - unless AppConfig.single_process_mode? + unless AppConfig.environment.single_process_mode? Sidekiq.redis {|redis| redis.client.disconnect } end |