From: Tom Hughes Date: Fri, 12 Aug 2011 21:27:15 +0000 (+0100) Subject: Allow the log location to be changed in production X-Git-Tag: live~6223 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/9c1a3e47086b53592aafa9452a2a666d5c972f0d Allow the log location to be changed in production --- 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