Commit 0d025ff36f9433217223d6fff1509765dfb4fd4e

  • Tree SHA1: 784b7a6
  • Parent SHA1: 1636924 (Updating the pay_off.png on the homepage. The font is a little less light now, making it easier to read on strange monitors.)
  • raw diff | raw patch
Add a warning if gitorious.yml is wrong.
- do this in environment.rb since config/<RAILS_ENV> uses the Yaml file directly
  
1111require File.join(File.dirname(__FILE__), 'boot')
1212
1313Rails::Initializer.run do |config|
14 gitorious_yaml = YAML.load_file(File.join(RAILS_ROOT, "config/gitorious.yml"))[RAILS_ENV]
15 raise "Your config/gitorious.yml does not have an entry for your current Rails environment. Please consult config/gitorious.sample.yml for instructions." unless gitorious_yaml
16
1417 # Settings in config/environments/* take precedence over those specified here.
1518 # Application configuration should go into files in config/initializers
1619 # -- all .rb files in that directory are automatically loaded.