summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/boot.rb1
-rw-r--r--config/environment.rb31
-rw-r--r--config/environments/production.rb3
-rw-r--r--config/sphinx.yml3
4 files changed, 32 insertions, 6 deletions
diff --git a/config/boot.rb b/config/boot.rb
index dd5e3b6..9834fc4 100644
--- a/config/boot.rb
+++ b/config/boot.rb
@@ -2,6 +2,7 @@
2# Configure your app in config/environment.rb and config/environments/*.rb 2# Configure your app in config/environment.rb and config/environments/*.rb
3 3
4RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT) 4RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
5ENV['NLS_LANG'] = 'de_DE.UTF8'
5 6
6module Rails 7module Rails
7 class << self 8 class << self
diff --git a/config/environment.rb b/config/environment.rb
index ec7ffa9..57b9ef2 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -1,11 +1,33 @@
1# Be sure to restart your server when you modify this file 1# Be sure to restart your server when you modify this file
2 2
3# Specifies gem version of Rails to use when vendor/rails is not present 3# Specifies gem version of Rails to use when vendor/rails is not present
4RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION 4RAILS_GEM_VERSION = '2.3.15' unless defined? RAILS_GEM_VERSION
5 5
6# Bootstrap the Rails environment, frameworks, and default configuration 6# Bootstrap the Rails environment, frameworks, and default configuration
7require File.join(File.dirname(__FILE__), 'boot') 7require File.join(File.dirname(__FILE__), 'boot')
8 8
9# monkey patch for 2.0. Will ignore vendor gems.
10if RUBY_VERSION >= "2.0.0"
11 module Gem
12 def self.source_index
13 sources
14 end
15
16 def self.cache
17 sources
18 end
19
20 SourceIndex = Specification
21
22 class SourceList
23 # If you want vendor gems, this is where to start writing code.
24 def search( *args ); []; end
25 def each( &block ); end
26 include Enumerable
27 end
28 end
29end
30
9Rails::Initializer.run do |config| 31Rails::Initializer.run do |config|
10 # Settings in config/environments/* take precedence over those specified here. 32 # Settings in config/environments/* take precedence over those specified here.
11 # Application configuration should go into files in config/initializers 33 # Application configuration should go into files in config/initializers
@@ -23,7 +45,7 @@ Rails::Initializer.run do |config|
23 # config.gem "rake", :version => ">= 0.8.3" 45 # config.gem "rake", :version => ">= 0.8.3"
24 # config.gem "rack", :version => ">= 0.9.1" 46 # config.gem "rack", :version => ">= 0.9.1"
25 config.gem "pg" 47 config.gem "pg"
26 config.gem "thinking-sphinx", :lib => 'thinking_sphinx', :version => '1.4.3' 48 config.gem "thinking-sphinx", :lib => 'thinking_sphinx', :version => '1.5.0'
27 config.gem "libxml-ruby", :lib => 'xml' 49 config.gem "libxml-ruby", :lib => 'xml'
28 config.gem "erdgeist-chaos_calendar", :lib => "chaos_calendar", :source => "http://gems.github.com" 50 config.gem "erdgeist-chaos_calendar", :lib => "chaos_calendar", :source => "http://gems.github.com"
29 51
@@ -55,9 +77,10 @@ Rails::Initializer.run do |config|
55 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. 77 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
56 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')] 78 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
57 config.i18n.default_locale = :de 79 config.i18n.default_locale = :de
80
58end 81end
59 82
60require 'awesome_patch' 83require 'awesome_patch'
61 84
62ExceptionNotifier.exception_recipients = %w(hukl@berlin.ccc.de) 85ExceptionNotifier.exception_recipients = %w(erdgeist@ccc.de)
63ExceptionNotifier.sender_address = %("CCCMS Error" <error@ccc.de>) 86ExceptionNotifier.sender_address = %("CCCMS Error" <error@www.ccc.de>)
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 68ceccd..3195745 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -32,4 +32,5 @@ ActionMailer::Base.sendmail_settings = {
32 :arguments => '-i -t' 32 :arguments => '-i -t'
33} 33}
34ActionMailer::Base.perform_deliveries = true 34ActionMailer::Base.perform_deliveries = true
35ActionMailer::Base.raise_delivery_errors = true \ No newline at end of file 35ActionMailer::Base.raise_delivery_errors = true
36
diff --git a/config/sphinx.yml b/config/sphinx.yml
index a01c216..3dc9195 100644
--- a/config/sphinx.yml
+++ b/config/sphinx.yml
@@ -8,4 +8,5 @@ production:
8 config_file: "/usr/local/etc/sphinx.conf" 8 config_file: "/usr/local/etc/sphinx.conf"
9 searchd_log_file: "/var/log/searchd.log" 9 searchd_log_file: "/var/log/searchd.log"
10 query_log_file: "/var/log/searchd.query.log" 10 query_log_file: "/var/log/searchd.query.log"
11 pid_file: "/var/run/sphinxsearch/searchd.pid" \ No newline at end of file 11 max_matches: 10000
12 pid_file: "/var/run/sphinxsearch/searchd.pid"