To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / config / environment.rb @ 1078:b9e34a051f82
History | View | Annotate | Download (2.66 KB)
| 1 | 0:513646585e45 | Chris | # Be sure to restart your web server when you modify this file.
|
|---|---|---|---|
| 2 | |||
| 3 | 909:cbb26bc654de | Chris | # Uncomment below to force Rails into production mode when
|
| 4 | 0:513646585e45 | Chris | # you don't control web/app server and can't set it the proper way
|
| 5 | # ENV['RAILS_ENV'] ||= 'production'
|
||
| 6 | |||
| 7 | # Specifies gem version of Rails to use when vendor/rails is not present
|
||
| 8 | 909:cbb26bc654de | Chris | RAILS_GEM_VERSION = '2.3.14' unless defined? RAILS_GEM_VERSION |
| 9 | |||
| 10 | if RUBY_VERSION >= '1.9' |
||
| 11 | Encoding.default_external = 'UTF-8' |
||
| 12 | end
|
||
| 13 | 0:513646585e45 | Chris | |
| 14 | # Bootstrap the Rails environment, frameworks, and default configuration
|
||
| 15 | require File.join(File.dirname(__FILE__), 'boot') |
||
| 16 | |||
| 17 | # Load Engine plugin if available
|
||
| 18 | begin
|
||
| 19 | require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot') |
||
| 20 | rescue LoadError |
||
| 21 | # Not available
|
||
| 22 | end
|
||
| 23 | |||
| 24 | Rails::Initializer.run do |config| |
||
| 25 | # Settings in config/environments/* take precedence those specified here
|
||
| 26 | 909:cbb26bc654de | Chris | |
| 27 | 0:513646585e45 | Chris | # Skip frameworks you're not going to use
|
| 28 | # config.frameworks -= [ :action_web_service, :action_mailer ]
|
||
| 29 | |||
| 30 | # Add additional load paths for sweepers
|
||
| 31 | 245:051f544170fe | Chris | config.autoload_paths += %W( #{RAILS_ROOT}/app/sweepers )
|
| 32 | 0:513646585e45 | Chris | |
| 33 | 909:cbb26bc654de | Chris | # Force all environments to use the same logger level
|
| 34 | 0:513646585e45 | Chris | # (by default production uses :info, the others :debug)
|
| 35 | # config.log_level = :debug
|
||
| 36 | |||
| 37 | # Enable page/fragment caching by setting a file-based store
|
||
| 38 | # (remember to create the caching directory and make it readable to the application)
|
||
| 39 | 1076:b665182d9dd9 | chris | config.action_controller.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache" |
| 40 | |||
| 41 | # And for direct uses of the cache
|
||
| 42 | config.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache" |
||
| 43 | 909:cbb26bc654de | Chris | |
| 44 | 0:513646585e45 | Chris | # Activate observers that should always be running
|
| 45 | # config.active_record.observers = :cacher, :garbage_collector
|
||
| 46 | 441:cbce1fd3b1b7 | Chris | config.active_record.observers = :message_observer, :issue_observer, :journal_observer, :news_observer, :document_observer, :wiki_content_observer, :comment_observer |
| 47 | 0:513646585e45 | Chris | |
| 48 | # Make Active Record use UTC-base instead of local time
|
||
| 49 | # config.active_record.default_timezone = :utc
|
||
| 50 | 909:cbb26bc654de | Chris | |
| 51 | 0:513646585e45 | Chris | # Use Active Record's schema dumper instead of SQL when creating the test database
|
| 52 | # (enables use of different database adapters for development and test environments)
|
||
| 53 | # config.active_record.schema_format = :ruby
|
||
| 54 | 909:cbb26bc654de | Chris | |
| 55 | 0:513646585e45 | Chris | # Deliveries are disabled by default. Do NOT modify this section.
|
| 56 | 210:0579821a129a | Chris | # Define your email configuration in configuration.yml instead.
|
| 57 | 0:513646585e45 | Chris | # It will automatically turn deliveries on
|
| 58 | config.action_mailer.perform_deliveries = false
|
||
| 59 | |||
| 60 | config.gem 'rubytree', :lib => 'tree' |
||
| 61 | 909:cbb26bc654de | Chris | config.gem 'coderay', :version => '~>1.0.0' |
| 62 | |||
| 63 | 0:513646585e45 | Chris | # Load any local configuration that is kept out of source control
|
| 64 | # (e.g. gems, patches).
|
||
| 65 | if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb')) |
||
| 66 | instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb')) |
||
| 67 | end
|
||
| 68 | end |