Wire up Solid Cache, Solid Queue, and Solid Cable for production #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Related to
ldraney/landscaping-assistant#1(parent scaffold issue). Discovered during initial deploy -- multi-database architecture is provisioned but Solid gems aren't wired into production config.Repo
ldraney/landscaping-assistantUser Story
As a developer
I want the Rails 8 Solid stack (Cache, Queue, Cable) fully configured for production
So that the app uses database-backed caching, background jobs, and WebSockets without Redis
Context
The multi-database architecture is provisioned: 4 PostgreSQL databases exist on the shared CNPG cluster,
database.ymlhas the cache/queue/cable entries, and the Solid gems are in the Gemfile. However, production.rb still uses default cache store (memory), default queue adapter (async), and cable.yml points to Redis. The Solid gem install generators haven't been run, so migration directories (db/cache_migrate/,db/queue_migrate/,db/cable_migrate/) don't exist yet.Architecture is documented in
docs/multi-database.md.File Targets
Files the agent should modify or create:
config/environments/production.rb-- set cache_store, queue_adapterconfig/cable.yml-- change production adapter from redis to solid_cabledb/cache_migrate/-- generated byrails solid_cache:installdb/queue_migrate/-- generated byrails solid_queue:installdb/cable_migrate/-- generated byrails solid_cable:installFiles the agent should NOT touch:
config/database.yml-- already correctdocs/multi-database.md-- already documents target stateAcceptance Criteria
config.cache_store = :solid_cache_storein production.rbconfig.active_job.queue_adapter = :solid_queuein production.rbcable.ymlproduction adapter issolid_cableRails.cache.write("test", "val")persists tolandscaping_assistant_cachelandscaping_assistant_queueTest Expectations
rails solid_cache:install,solid_queue:install,solid_cable:installgenerators run without errorbundle exec rspecConstraints
SOLID_QUEUE_IN_PUMA=1) is simplest for single-pod deploymentsChecklist
Related
landscaping-assistant-- project this affects