diff --git a/config/puma.rb b/config/puma.rb index 44b1e32..4cb3747 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -7,9 +7,6 @@ bind "tcp://#{bind_address}:#{bind_port}" environment Postal.config.rails&.environment || 'development' prune_bundler quiet false -unless ENV['LOG_TO_STDOUT'] - stdout_redirect Postal.log_root.join('puma.log'), Postal.log_root.join('puma.log'), true -end if ENV['APP_ROOT'] directory ENV['APP_ROOT'] diff --git a/lib/postal/config.rb b/lib/postal/config.rb index ee6d0d8..7bff847 100644 --- a/lib/postal/config.rb +++ b/lib/postal/config.rb @@ -37,8 +37,6 @@ module Postal @config_root ||= begin if ENV['POSTAL_CONFIG_ROOT'] Pathname.new(ENV['POSTAL_CONFIG_ROOT']) - elsif __FILE__ =~ /\A\/opt\/postal/ - Pathname.new("/opt/postal/config") else Pathname.new(File.expand_path("../../../config/postal", __FILE__)) end @@ -49,8 +47,6 @@ module Postal @log_root ||= begin if config.logging.root Pathname.new(config.logging.root) - elsif __FILE__ =~ /\/opt\/postal/ - Pathname.new("/opt/postal/log") else app_root.join('log') end