summaryrefslogtreecommitdiff
path: root/config/environments/development.rb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-27 22:52:50 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-27 22:52:50 +0200
commit9a19a0494ef51cdac9a78e24d517ca48ba44c453 (patch)
tree8eaae12d8047a40e29d3ea7ff3116b5c869e04bd /config/environments/development.rb
parent85a01e35274b8d4d4165a7b26bd7986e211246bb (diff)
parent1853082fcd8c067390c246f9daa01a9b47387497 (diff)
Migration from Rails 2.3.5 to Rails 8.1 successful.
Merging dev branch.
Diffstat (limited to 'config/environments/development.rb')
-rw-r--r--config/environments/development.rb49
1 files changed, 36 insertions, 13 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 85c9a60..56174f8 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -1,17 +1,40 @@
1# Settings specified here will take precedence over those in config/environment.rb 1require "active_support/core_ext/integer/time"
2 2
3# In the development environment your application's code is reloaded on 3Rails.application.configure do
4# every request. This slows down response time but is perfect for development 4 config.enable_reloading = true
5# since you don't have to restart the webserver when you make code changes. 5 config.eager_load = false
6config.cache_classes = false
7 6
8# Log error messages when you accidentally call methods on nil. 7 config.consider_all_requests_local = true
9config.whiny_nils = true 8 config.server_timing = true
10 9
11# Show full error reports and disable caching 10 if Rails.root.join("tmp/caching-dev.txt").exist?
12config.action_controller.consider_all_requests_local = true 11 config.action_controller.perform_caching = true
13config.action_view.debug_rjs = true 12 config.action_controller.enable_fragment_cache_logging = true
14config.action_controller.perform_caching = false 13 config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" }
14 else
15 config.action_controller.perform_caching = false
16 end
15 17
16# Don't care if the mailer can't send 18 config.cache_store = :memory_store
17config.action_mailer.raise_delivery_errors = false \ No newline at end of file 19
20 config.action_mailer.raise_delivery_errors = false
21 config.action_mailer.perform_caching = false
22 config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
23
24 config.active_support.deprecation = :log
25
26 config.active_record.migration_error = :page_load
27 config.active_record.verbose_query_logs = true
28 config.active_record.query_log_tags_enabled = true
29
30 config.active_job.verbose_enqueue_logs = true
31 config.action_dispatch.verbose_redirect_logs = true
32 config.action_view.annotate_rendered_view_with_filenames = true
33 config.action_controller.raise_on_missing_callback_actions = true
34
35 config.hosts.clear
36 config.middleware.delete ExceptionNotification::Rack
37
38 config.assets.debug = false
39 config.assets.digest = true
40end