diff --git a/config/environments/development.rb b/config/environments/development.rb index 455fa6981..1c3101ca7 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -65,6 +65,7 @@ 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'] == 'true' # Enable first-time tutorial for users signing in the sciNote for diff --git a/config/environments/production.rb b/config/environments/production.rb index a3a7913a1..a7c63d0be 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -98,7 +98,7 @@ Rails.application.configure do # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false - # Disable deface if neccesary + # Enable/disable Deface config.deface.enabled = ENV['DEFACE_ENABLED'] == 'true' # Enable first-time tutorial for users signing in the sciNote for diff --git a/config/environments/test.rb b/config/environments/test.rb index 5a7dc5627..27782d2b6 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'] == 'true' + # Enable first-time tutorial for users signing in the sciNote for # the first time. config.x.enable_tutorial = false