osem-fcy/config/environment.rb

26 lines
564 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')
if File.exist?(path)
puts "
WARNING: The OSEM configuration file
#{path}
2016-04-29 14:36:40 +02:00
is deprecated. Please use the environment variables
explained in INSTALL.md instead.
There is a rake task to migrate your settings. For instance
to migrate your settings for production:
bundle exec rake data:migrate:config2dotenv RAILS_ENV=production
"
end
2013-01-07 09:04:09 +01:00
# Initialize the rails application
Osem::Application.initialize!