about summary refs log tree commit diff stats
path: root/config/environments/development.rb
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-12-07 11:49:49 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2024-12-07 11:49:49 -0500
commit56f5841d4b9c12296cdfcaeff174b2627d59afc8 (patch)
tree4f7da4ebbe5ee15a1594b26466ed78e2cf10de35 /config/environments/development.rb
parentc1b0443ba2aebdbd39291ddab0c189f3f4831320 (diff)
downloadpokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.tar.gz
pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.tar.bz2
pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.zip
Migrate to full rails app
Diffstat (limited to 'config/environments/development.rb')
-rw-r--r--config/environments/development.rb76
1 files changed, 76 insertions, 0 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb new file mode 100644 index 0000000..2e7fb48 --- /dev/null +++ b/config/environments/development.rb
@@ -0,0 +1,76 @@
1require "active_support/core_ext/integer/time"
2
3Rails.application.configure do
4 # Settings specified here will take precedence over those in config/application.rb.
5
6 # In the development environment your application's code is reloaded any time
7 # it changes. This slows down response time but is perfect for development
8 # since you don't have to restart the web server when you make code changes.
9 config.enable_reloading = true
10
11 # Do not eager load code on boot.
12 config.eager_load = false
13
14 # Show full error reports.
15 config.consider_all_requests_local = true
16
17 # Enable server timing
18 config.server_timing = true
19
20 # Enable/disable caching. By default caching is disabled.
21 # Run rails dev:cache to toggle caching.
22 if Rails.root.join("tmp/caching-dev.txt").exist?
23 config.action_controller.perform_caching = true
24 config.action_controller.enable_fragment_cache_logging = true
25
26 config.cache_store = :memory_store
27 config.public_file_server.headers = {
28 "Cache-Control" => "public, max-age=#{2.days.to_i}"
29 }
30 else
31 config.action_controller.perform_caching = false
32
33 config.cache_store = :null_store
34 end
35
36 # Store uploaded files on the local file system (see config/storage.yml for options).
37 config.active_storage.service = :local
38
39 # Don't care if the mailer can't send.
40 config.action_mailer.raise_delivery_errors = false
41
42 config.action_mailer.perform_caching = false
43
44 # Print deprecation notices to the Rails logger.
45 config.active_support.deprecation = :log
46
47 # Raise exceptions for disallowed deprecations.
48 config.active_support.disallowed_deprecation = :raise
49
50 # Tell Active Support which deprecation messages to disallow.
51 config.active_support.disallowed_deprecation_warnings = []
52
53 # Raise an error on page load if there are pending migrations.
54 config.active_record.migration_error = :page_load
55
56 # Highlight code that triggered database queries in logs.
57 config.active_record.verbose_query_logs = true
58
59 # Highlight code that enqueued background job in logs.
60 config.active_job.verbose_enqueue_logs = true
61
62 # Suppress logger output for asset requests.
63 config.assets.quiet = true
64
65 # Raises error for missing translations.
66 # config.i18n.raise_on_missing_translations = true
67
68 # Annotate rendered view with file names.
69 # config.action_view.annotate_rendered_view_with_filenames = true
70
71 # Uncomment if you wish to allow Action Cable access from any origin.
72 # config.action_cable.disable_request_forgery_protection = true
73
74 # Raise error when a before_action's only/except options reference missing actions
75 config.action_controller.raise_on_missing_callback_actions = true
76end