summaryrefslogtreecommitdiff
path: root/config/environments/development.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/environments/development.rb')
-rw-r--r--config/environments/development.rb38
1 files changed, 25 insertions, 13 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 1c26f7d..56174f8 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -1,26 +1,38 @@
1# Settings specified here will take precedence over those in config/environment.rb 1require "active_support/core_ext/integer/time"
2 2
3Cccms::Application.configure do 3Rails.application.configure do
4 # In the development environment your application's code is reloaded on
5 # every request. This slows down response time but is perfect for development
6 # since you don't have to restart the webserver when you make code changes.
7 config.enable_reloading = true 4 config.enable_reloading = true
5 config.eager_load = false
6
7 config.consider_all_requests_local = true
8 config.server_timing = true
8 9
9 # Log error messages when you accidentally call methods on nil. 10 if Rails.root.join("tmp/caching-dev.txt").exist?
11 config.action_controller.perform_caching = true
12 config.action_controller.enable_fragment_cache_logging = true
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
10 17
11 # Show full error reports and disable caching 18 config.cache_store = :memory_store
12 config.action_controller.consider_all_requests_local = true
13 config.action_controller.perform_caching = false
14 19
15 # Don't care if the mailer can't send
16 config.action_mailer.raise_delivery_errors = false 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 }
17 23
18 config.active_support.deprecation = :log 24 config.active_support.deprecation = :log
19 config.public_file_server.enabled = true
20 config.eager_load = false
21 25
22 config.hosts.clear 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
23 34
35 config.hosts.clear
24 config.middleware.delete ExceptionNotification::Rack 36 config.middleware.delete ExceptionNotification::Rack
25 37
26 config.assets.debug = false 38 config.assets.debug = false