Don't read config.yml anymore

add some heroku support gems and document all the new variables
This commit is contained in:
Henne Vogelsang 2016-03-22 18:16:51 +01:00
parent ebcb2780cd
commit 64830e9cff
4 changed files with 44 additions and 7 deletions

View file

@ -3,11 +3,18 @@ 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 = {}
if File.exist?(path)
puts "
WARNING: The OSEM configuration file
#{path}
is deprecated. Please use the environment environment variables
explained in INSTALL.md instead.
"
end
# Initialize the rails application