mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
14 lines
349 B
Ruby
14 lines
349 B
Ruby
# Load the rails application
|
|
require File.expand_path('../application', __FILE__)
|
|
|
|
# Load the configuration file
|
|
path = Rails.root.join("config", "config.yml")
|
|
begin
|
|
CONFIG = YAML.load_file(path)[Rails.env]
|
|
rescue
|
|
puts "Error while parsing config file #{path}"
|
|
CONFIG = {}
|
|
end
|
|
|
|
# Initialize the rails application
|
|
Osem::Application.initialize!
|