Skip to content

Conversation

@umarhadi
Copy link
Contributor

@umarhadi umarhadi commented Dec 4, 2025

The app failed to boot on Fly.io because Rails 8 expected separate queue and cache databases in production, but the MySQL config only defined primary and cable.

Root Cause

Rails 8 uses Solid Queue and Solid Cache in production, and both require their own database connections. The MySQL config didn’t include queue or cache entries for the production environment.

Fix

Added queue and cache database definitions to config/database.mysql.yml under production, matching the existing SQLite setup.

Production databases now include:

  • fizzy_production
  • fizzy_production_cable
  • fizzy_production_queue
  • fizzy_production_cache

Development and test remain unchanged because they don’t use database-backed queue/cache.

Copilot AI review requested due to automatic review settings December 4, 2025 02:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds missing production database configurations for Solid Queue and Solid Cache to the MySQL database configuration file, resolving a boot failure on Fly.io where Rails 8 expected these database connections to be defined.

  • Added queue and cache database entries to the production section of config/database.mysql.yml
  • Matches the existing SQLite configuration structure which already includes these databases in production

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@jorgemanrubia jorgemanrubia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jorgemanrubia jorgemanrubia merged commit 40f906f into basecamp:main Dec 4, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants