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
|
2014-03-24 12:45:04 +01:00
|
|
|
path = Rails.root.join("config", "config.yml")
|
|
|
|
|
begin
|
|
|
|
|
CONFIG = YAML.load_file(path)[Rails.env]
|
2014-07-21 14:37:26 +02:00
|
|
|
rescue
|
2014-03-24 12:45:04 +01:00
|
|
|
puts "Error while parsing config file #{path}"
|
2014-07-21 14:27:32 +02:00
|
|
|
CONFIG = {}
|
2014-03-24 12:45:04 +01:00
|
|
|
end
|
|
|
|
|
|
2013-01-07 09:04:09 +01:00
|
|
|
# Initialize the rails application
|
|
|
|
|
Osem::Application.initialize!
|