Upgrade strategy?

Hi,

I’m wondering about what’s going on during this rails app:upgrade from 8.0.0-rc1 to 8.0.0-rc2

It looks like the original app generation (new at rails 8.0.0-rc1) set itself up to use solid{cache,queue} but the incoming file are just other base defaults using mem and redis respectively.

I assume it is prudent to diff/grok these changes during app:upgrade everytime?

I assume that these files (especially environments/*.rb) will become increasing diverged from any original or default, so the trick is to spot the overhaul changes between more significant point releases

I’m new to rails and so really appreciate any gotchas here.

Thanks, R

Overwrite /Users/rob/<proj>/config/environments/production.rb? (enter "h" for help) [Ynaqdhm] d
--- /Users/rob/<proj>/config/environments/production.rb	2024-10-27 13:58:42
+++ /Users/rob/<proj>/config/environments/production.rb20241030-1793-x32jtt	2024-10-30 10:13:07
@@ -47,13 +47,11 @@
   config.active_support.report_deprecations = false

   # Replace the default in-process memory cache store with a durable alternative.
-  config.cache_store = :solid_cache_store
+  # config.cache_store = :mem_cache_store

   # Replace the default in-process and non-durable queuing backend for Active Job.
-  config.active_job.queue_adapter = :solid_queue
-  config.solid_queue.connects_to = { database: { writing: :queue } }
+  # config.active_job.queue_adapter = :resque

-
   # Ignore bad email addresses and do not raise email delivery errors.
   # Set this to true and configure the email server for immediate delivery to raise delivery errors.
   # config.action_mailer.raise_delivery_errors = false

And similarly - as I pick my way through the conflicts …

the dev script is being transitioned away from foreman which appears to also do some CSS generation, to just running rails server (and ignoring the CSS build)

This seems like a bug (relating to the experience of developers new to rails)

--- /Users/rob/<proj>/bin/dev	2024-10-27 13:58:39
+++ /Users/rob/<proj>/bin/dev20241030-1793-ax496y	2024-10-30 10:25:36
@@ -1,16 +1,2 @@
-#!/usr/bin/env sh
-
-if ! gem list foreman -i --silent; then
-  echo "Installing foreman..."
-  gem install foreman
-fi
-
-# Default to port 3000 if not specified
-export PORT="${PORT:-3000}"
-
-# Let the debug gem allow remote connections,
-# but avoid loading until `debugger` is called
-export RUBY_DEBUG_OPEN="true"
-export RUBY_DEBUG_LAZY="true"
-
-exec foreman start -f Procfile.dev "$@"
+#!/usr/bin/env ruby
+exec "./bin/rails", "server", *ARGV