To support LRS in two flavors as - Recordexa and ExpertusONE LRS.
Issue - 7321
When we switch flavor site logo, admin details, footer, email templates, privacy & tos and etc. pages should reflect the changes. This is implemented with the help of SiteSetting model with SiteSetting.current_flavor attribute. Based on the value of this attribute, these changes will take place.
a) If this is an initial app server setup, add the following variable in the /config/environments/<environment>.rb
DEFAULT_FLAVOR = "expertusone"
Run the db:create, db:migrate and db:seed tasks.
b) If this is an already setup app and you need to change the flavor, check “Switching the flavor” below.
a) Login as super admin. Go to Manage > Site properties. Change the flavor and save. This will change the site name, super admin credentials and the logo.
b) If the super admin email needs to be changed, please run the following task.
bundle exec rake backfill:update_super_admin_email["lrsadmin@expertus.com"]
C) If you also like to change the app server and API urls, change them in <rails_root>/config/environments/<environment.rb>.