From 9c1a3e47086b53592aafa9452a2a666d5c972f0d Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 12 Aug 2011 22:27:15 +0100 Subject: [PATCH 1/1] Allow the log location to be changed in production --- config/environments/production.rb | 5 +++++ config/example.application.yml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index 457966091..3b664b821 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -12,6 +12,11 @@ config.action_view.cache_template_loading = true # See everything in the log (default is :info) # config.log_level = :debug +# Use a different log path in production +if defined?(LOG_PATH) + config.log_path = LOG_PATH +end + # Use a different logger for distributed setups # config.logger = SyslogLogger.new diff --git a/config/example.application.yml b/config/example.application.yml index a8ebb4d8f..abcd1ce41 100644 --- a/config/example.application.yml +++ b/config/example.application.yml @@ -57,6 +57,8 @@ standard_settings: &standard_settings gpx_image_dir: "/home/osm/images" # Location of data for file columns #file_column_root: "" + # Log file to use + #log_path: "" # List of memcache servers to use for caching #memcache_servers: [] # Enable legacy OAuth 1.0 support -- 2.43.2