mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Don't read config.yml anymore
add some heroku support gems and document all the new variables
This commit is contained in:
parent
ebcb2780cd
commit
64830e9cff
4 changed files with 44 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue