Allow the log location to be changed in production
authorTom Hughes <tom@compton.nu>
Fri, 12 Aug 2011 21:27:15 +0000 (22:27 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 12 Aug 2011 21:27:15 +0000 (22:27 +0100)
config/environments/production.rb
config/example.application.yml

index 457966091416284b01c5f530bee50d30444002f4..3b664b8219fd7a069e2275c68ffc583d2e4e9ff1 100644 (file)
@@ -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
 
index a8ebb4d8fbb938426c1b32b96061ba32217955eb..abcd1ce41d8b8757f68f4813ac2d53885b967e53 100644 (file)
@@ -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