diff --git a/config/environments/development.rb b/config/environments/development.rb index d2c9395d0..ddcca9b21 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -65,6 +65,9 @@ Rails.application.configure do # Raises error for missing translations config.action_view.raise_on_missing_translations = true + # Enable/disable Deface + config.deface.enabled = ENV['DEFACE_ENABLED'] != 'false' + # Enable first-time tutorial for users signing in the sciNote for # the first time. config.x.enable_tutorial = ENV['ENABLE_TUTORIAL'] == 'true' diff --git a/config/environments/production.rb b/config/environments/production.rb index a2069257b..197f1a42c 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -98,6 +98,9 @@ Rails.application.configure do # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false + # Enable/disable Deface + config.deface.enabled = ENV['DEFACE_ENABLED'] != 'false' + # Enable first-time tutorial for users signing in the sciNote for # the first time. config.x.enable_tutorial = ENV['ENABLE_TUTORIAL'] != 'false' diff --git a/config/environments/test.rb b/config/environments/test.rb index 5a7dc5627..f917df2bd 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -65,6 +65,9 @@ Rails.application.configure do # Raises error for missing translations # config.action_view.raise_on_missing_translations = true + # Enable/disable Deface + config.deface.enabled = ENV['DEFACE_ENABLED'] != 'false' + # Enable first-time tutorial for users signing in the sciNote for # the first time. config.x.enable_tutorial = false