mirror of
https://github.com/openSUSE/osem.git
synced 2026-02-07 12:41:08 -05:00
26 lines
564 B
Ruby
26 lines
564 B
Ruby
# Load the rails application
|
|
require File.expand_path('../application', __FILE__)
|
|
|
|
# Load the configuration file
|
|
path = Rails.root.join('config', 'config.yml')
|
|
if File.exist?(path)
|
|
puts "
|
|
|
|
WARNING: The OSEM configuration file
|
|
|
|
#{path}
|
|
|
|
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
|
|
|
|
# Initialize the rails application
|
|
Osem::Application.initialize!
|