2018-02-08 12:01:46 -05:00
|
|
|
Rails.application.configure do
|
2018-02-12 10:34:29 -05:00
|
|
|
# Verifies that versions and hashed value of the package contents in the project's package.json
|
2018-05-29 10:12:50 -04:00
|
|
|
# config.webpacker.check_yarn_integrity = true
|
2018-02-08 12:01:46 -05:00
|
|
|
# Settings specified here will take precedence over those in config/application.rb.
|
|
|
|
|
2020-11-02 14:36:26 -05:00
|
|
|
# In the development environment your application's code is reloaded any time
|
|
|
|
# it changes. This slows down response time but is perfect for development
|
2018-02-08 12:01:46 -05:00
|
|
|
# since you don't have to restart the web server when you make code changes.
|
|
|
|
config.cache_classes = false
|
|
|
|
|
|
|
|
# Do not eager load code on boot.
|
|
|
|
config.eager_load = false
|
|
|
|
|
|
|
|
# Show full error reports.
|
|
|
|
config.consider_all_requests_local = true
|
|
|
|
|
|
|
|
# Enable/disable caching. By default caching is disabled.
|
2019-01-22 03:53:47 -05:00
|
|
|
# Run bin/rails dev:cache to toggle caching.
|
2018-02-08 12:01:46 -05:00
|
|
|
if Rails.root.join('tmp', 'caching-dev.txt').exist?
|
|
|
|
config.action_controller.perform_caching = true
|
|
|
|
|
|
|
|
config.cache_store = :memory_store
|
|
|
|
config.public_file_server.headers = {
|
|
|
|
'Cache-Control' => "public, max-age=#{2.days.to_i}"
|
|
|
|
}
|
|
|
|
else
|
|
|
|
config.action_controller.perform_caching = false
|
|
|
|
|
|
|
|
config.cache_store = :null_store
|
|
|
|
end
|
|
|
|
|
|
|
|
# Store uploaded files on the local file system (see config/storage.yml for options)
|
|
|
|
config.active_storage.service = :local
|
|
|
|
|
|
|
|
# Don't care if the mailer can't send.
|
|
|
|
config.action_mailer.raise_delivery_errors = false
|
|
|
|
|
|
|
|
config.action_mailer.perform_caching = false
|
|
|
|
|
|
|
|
# Print deprecation notices to the Rails logger.
|
|
|
|
config.active_support.deprecation = :log
|
|
|
|
|
|
|
|
# Raise an error on page load if there are pending migrations.
|
|
|
|
config.active_record.migration_error = :page_load
|
|
|
|
|
|
|
|
# Highlight code that triggered database queries in logs.
|
|
|
|
config.active_record.verbose_query_logs = true
|
|
|
|
|
2020-10-24 21:09:37 -04:00
|
|
|
# Show a warning when Rails couldn't parse your database.yml
|
|
|
|
# for multiple databases.
|
|
|
|
config.active_record.suppress_multiple_database_warning = false
|
|
|
|
|
2018-02-08 12:01:46 -05:00
|
|
|
# Debug mode disables concatenation and preprocessing of assets.
|
|
|
|
# This option may cause significant delays in view rendering with a large
|
|
|
|
# number of complex assets.
|
|
|
|
config.assets.debug = true
|
|
|
|
|
|
|
|
# Suppress logger output for asset requests.
|
|
|
|
config.assets.quiet = true
|
|
|
|
|
|
|
|
# Raises error for missing translations
|
2017-12-26 19:51:42 -05:00
|
|
|
# config.i18n.raise_on_missing_translations = true
|
2018-02-08 12:01:46 -05:00
|
|
|
|
2020-05-09 02:22:12 -04:00
|
|
|
# Annotate rendered view with file names
|
|
|
|
# config.action_view.annotate_rendered_view_with_filenames = true
|
2018-02-08 12:01:46 -05:00
|
|
|
end
|