From 61850f7e929e08a004a1a4daeb975119b4e4f829 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Tue, 18 Apr 2023 16:01:04 +0200 Subject: [PATCH 1/2] Remove duplicate line Probably due to a bad merge conflict resolution Line is already on line `#25` --- config/environments/development.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index c95bf97549..72eb36d5eb 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -13,8 +13,6 @@ Openfoodnetwork::Application.configure do config.action_controller.default_url_options = {host: "localhost", port: 3000} - config.session_store :cache_store, key: "_sessions_development", compress: true, pool_size: 5, expire_after: 1.year - # :file_store is used by default when no cache store is specifically configured. if !!ENV["PROFILE"] || !!ENV["DEV_CACHING"] config.cache_store = :redis_cache_store, { From f7935bde349df92e7e30b39176d2df1a22b20ff3 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Tue, 18 Apr 2023 16:02:02 +0200 Subject: [PATCH 2/2] Enable caching dy default, to avoid StimulusReflex warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` Heads up! 🔥 👉 StimulusReflex requires caching to be enabled. Caching allows the session to be modified during ActionCable requests. To enable caching in development, run: rails dev:cache ``` Documentation: https://docs.stimulusreflex.com/hello-world/setup.html#manual-configuration --- Procfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Procfile b/Procfile index ba11bc27af..5bd98f6681 100644 --- a/Procfile +++ b/Procfile @@ -1,5 +1,5 @@ # Foreman Procfile. Start all dev server processes with: `foreman start` -rails: bundle exec rails s -p 3000 +rails: DEV_CACHING=true bundle exec rails s -p 3000 webpack: ./bin/webpack-dev-server -sidekiq: bundle exec sidekiq -q mailers -q default +sidekiq: DEV_CACHING=true bundle exec sidekiq -q mailers -q default