osem-fcy/config/environment.rb

15 lines
349 B
Ruby
Raw Normal View History

2013-01-07 09:04:09 +01:00
# Load the rails application
require File.expand_path('../application', __FILE__)
2014-04-23 15:45:55 +02:00
# Load the configuration file
path = Rails.root.join("config", "config.yml")
begin
CONFIG = YAML.load_file(path)[Rails.env]
2014-07-21 14:37:26 +02:00
rescue
puts "Error while parsing config file #{path}"
2014-07-21 14:27:32 +02:00
CONFIG = {}
end
2013-01-07 09:04:09 +01:00
# Initialize the rails application
Osem::Application.initialize!