annotate config/environment.rb @ 880:067c526a505e feature_74

Close obsolete branch feature_74
author Chris Cannam
date Sat, 26 Mar 2011 14:31:17 +0000
parents 513646585e45
children 0579821a129a
rev   line source
Chris@0 1 # Be sure to restart your web server when you modify this file.
Chris@0 2
Chris@0 3 # Uncomment below to force Rails into production mode when
Chris@0 4 # you don't control web/app server and can't set it the proper way
Chris@0 5 # ENV['RAILS_ENV'] ||= 'production'
Chris@0 6
Chris@0 7 # Specifies gem version of Rails to use when vendor/rails is not present
Chris@0 8 RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
Chris@0 9
Chris@0 10 # Bootstrap the Rails environment, frameworks, and default configuration
Chris@0 11 require File.join(File.dirname(__FILE__), 'boot')
Chris@0 12
Chris@0 13 # Load Engine plugin if available
Chris@0 14 begin
Chris@0 15 require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')
Chris@0 16 rescue LoadError
Chris@0 17 # Not available
Chris@0 18 end
Chris@0 19
Chris@0 20 Rails::Initializer.run do |config|
Chris@0 21 # Settings in config/environments/* take precedence those specified here
Chris@0 22
Chris@0 23 # Skip frameworks you're not going to use
Chris@0 24 # config.frameworks -= [ :action_web_service, :action_mailer ]
Chris@0 25
Chris@0 26 # Add additional load paths for sweepers
Chris@0 27 config.load_paths += %W( #{RAILS_ROOT}/app/sweepers )
Chris@0 28
Chris@0 29 # Force all environments to use the same logger level
Chris@0 30 # (by default production uses :info, the others :debug)
Chris@0 31 # config.log_level = :debug
Chris@0 32
Chris@0 33 # Enable page/fragment caching by setting a file-based store
Chris@0 34 # (remember to create the caching directory and make it readable to the application)
Chris@0 35 # config.action_controller.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache"
Chris@0 36
Chris@0 37 # Activate observers that should always be running
Chris@0 38 # config.active_record.observers = :cacher, :garbage_collector
Chris@0 39 config.active_record.observers = :message_observer, :issue_observer, :journal_observer, :news_observer, :document_observer, :wiki_content_observer
Chris@0 40
Chris@0 41 # Make Active Record use UTC-base instead of local time
Chris@0 42 # config.active_record.default_timezone = :utc
Chris@0 43
Chris@0 44 # Use Active Record's schema dumper instead of SQL when creating the test database
Chris@0 45 # (enables use of different database adapters for development and test environments)
Chris@0 46 # config.active_record.schema_format = :ruby
Chris@0 47
Chris@0 48 # Deliveries are disabled by default. Do NOT modify this section.
Chris@0 49 # Define your email configuration in email.yml instead.
Chris@0 50 # It will automatically turn deliveries on
Chris@0 51 config.action_mailer.perform_deliveries = false
Chris@0 52
Chris@0 53 config.gem 'rubytree', :lib => 'tree'
Chris@0 54
Chris@0 55 # Load any local configuration that is kept out of source control
Chris@0 56 # (e.g. gems, patches).
Chris@0 57 if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
Chris@0 58 instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
Chris@0 59 end
Chris@0 60 end