X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ee411e5154cedd644fe54ccb29d64b6d18cb9bde..7c5d0fff3d8aab23b17e32aa65f1f9e0beb95d3c:/config/environments/production.rb diff --git a/config/environments/production.rb b/config/environments/production.rb index 95b45339c..054f65404 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -49,19 +49,17 @@ OpenStreetMap::Application.configure do # Use a different cache store in production if defined?(MEMCACHE_SERVERS) - MEMCACHE = Memcached::Rails.new(MEMCACHE_SERVERS, :binary_protocol => true) - config.cache_store = :mem_cache_store, MEMCACHE + config.cache_store = :mem_cache_store, MemCache.new(:namespace => "rails:cache", :no_block => true, :buffer_requests => true, :noreply => true) end # Enable serving of images, stylesheets, and JavaScripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) - config.assets.precompile += %w( map.js menu.js pngfix.js site.js swfobject.js ) - config.assets.precompile += %w( openlayers.js ) + config.assets.precompile += %w( index.js edit.js browse.js pngfix.js swfobject.js ) config.assets.precompile += %w( large-ltr.css small-ltr.css print-ltr.css ) config.assets.precompile += %w( large-rtl.css small-rtl.css print-rtl.css ) - config.assets.precompile += %w( browse.css theme/default/style.css ) + config.assets.precompile += %w( browse.css theme/openstreetmap/style.css ) # Disable delivery errors, bad email addresses will be ignored # config.action_mailer.raise_delivery_errors = false