bootsnap, spring, sofurry type fixes

This commit is contained in:
Dylan Knutson
2025-07-08 01:25:00 +00:00
parent f79e37f256
commit 0427ac43c7
24 changed files with 176 additions and 38 deletions

View File

@@ -10,7 +10,8 @@ Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Turn false under Spring and add config.action_view.cache_template_loading = true.
config.cache_classes = true
config.cache_classes = false
config.action_view.cache_template_loading = true
# Eager loading loads your whole application. When running a single test locally,
# this probably isn't necessary. It's a good idea to do in a continuous integration

12
config/spring.rb Normal file
View File

@@ -0,0 +1,12 @@
Spring.after_fork do
# Reload the application when any of these files change
Spring.watch(
".ruby-version",
".rbenv-vars",
"tmp/restart.txt",
"tmp/caching-dev.txt"
)
end
# Speed up test loading
Spring.application_root = Rails.root if defined?(Rails)