Module: EacRailsBase0App::Application::Production::ClassMethods
- Defined in:
- lib/eac_rails_base0/app_base/application/production.rb
Instance Method Summary collapse
- #setup_aranha ⇒ Object
- #setup_assets ⇒ Object
-
#setup_general ⇒ Object
rubocop:disable Metrics/AbcSize.
- #setup_log ⇒ Object
- #setup_public_file_server ⇒ Object
Instance Method Details
#setup_aranha ⇒ Object
16 17 18 |
# File 'lib/eac_rails_base0/app_base/application/production.rb', line 16 def setup_aranha ::Aranha::Selenium::DriverOptions.default.headless = true end |
#setup_assets ⇒ Object
20 21 22 23 |
# File 'lib/eac_rails_base0/app_base/application/production.rb', line 20 def setup_assets config.assets.js_compressor = :uglifier config.assets.compile = false end |
#setup_general ⇒ Object
rubocop:disable Metrics/AbcSize
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/eac_rails_base0/app_base/application/production.rb', line 25 def setup_general # rubocop:disable Metrics/AbcSize config.active_record.dump_schema_after_migration = false config.cache_classes = true config.eager_load = false config.consider_all_requests_local = false config.action_controller.perform_caching = true config.read_encrypted_secrets = true config.action_mailer.perform_caching = false config.i18n.fallbacks = true end |
#setup_log ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/eac_rails_base0/app_base/application/production.rb', line 36 def setup_log config.log_level = :debug config. = [:request_id] config.active_support.deprecation = :notify config.log_formatter = ::Logger::Formatter.new config.logger = new_stdout_logger if ENV['RAILS_LOG_TO_STDOUT'].blank? end |
#setup_public_file_server ⇒ Object
44 45 46 |
# File 'lib/eac_rails_base0/app_base/application/production.rb', line 44 def setup_public_file_server config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? end |