123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- require "active_support/core_ext/integer/time"
- $stdout.sync = true
- Rails.application.configure do
-
- config.hosts << ENV['DOMAIN']
-
-
-
- config.middleware.insert_after ActionDispatch::Static, Rack::LiveReload
- config.cache_classes = false
-
- config.eager_load = false
-
- config.consider_all_requests_local = true
-
-
- if Rails.root.join('tmp', 'caching-dev.txt').exist?
- config.action_controller.perform_caching = true
- config.action_controller.enable_fragment_cache_logging = 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
-
-
-
- config.action_mailer.raise_delivery_errors = false
- config.action_mailer.perform_caching = false
-
- config.active_support.deprecation = :log
-
- config.active_support.disallowed_deprecation = :raise
-
- config.active_support.disallowed_deprecation_warnings = []
-
- config.action_dispatch.best_standards_support = :builtin
-
- config.action_controller.action_on_unpermitted_parameters = :raise
-
- config.active_record.migration_error = :page_load
-
- config.active_record.verbose_query_logs = true
-
-
-
- config.assets.debug = true
-
- config.assets.quiet = true
- config.action_mailer.default_url_options = { :host => ENV['DOMAIN'] }
- config.action_mailer.asset_host = ENV['DOMAIN']
- config.action_mailer.raise_delivery_errors = true
- if ENV['SEND_EMAIL_IN_DEVELOPMENT'] == 'true'
- config.action_mailer.delivery_method = :smtp
- else
- config.action_mailer.delivery_method = :letter_opener_web
- end
- config.action_mailer.perform_caching = false
-
-
-
- config.file_watcher = ActiveSupport::EventedFileUpdateChecker
- end
|