-
-
Notifications
You must be signed in to change notification settings - Fork 638
Fix shakapacker.yml template to prevent 'Slow setup' warnings (#1850) #2021
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…lopment (#1850) The installer was generating shakapacker.yml with compile: true in development, causing unnecessary 'Slow setup for development' warnings when using Procfiles with bin/dev that already run bin/shakapacker-dev-server or bin/shakapacker --watch. Changes: - Set compile: false in default section (inherited by development and production) - Remove compile: true from development section (inherits false from default) - Keep compile: true in test section (on-demand compilation needed for tests) - Add clarifying comments explaining when to use compile: true vs false This prevents Rails from attempting on-demand compilation when a webpack dev server is already running, eliminating confusing warnings on every page load. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
WalkthroughThe shakapacker.yml template is updated to set Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Suggested labels
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (3)📚 Learning: 2025-02-12T16:38:06.537ZApplied to files:
📚 Learning: 2025-09-16T08:01:11.146ZApplied to files:
📚 Learning: 2025-04-26T21:55:55.874ZApplied to files:
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Fixes #1850 by correcting the
shakapacker.ymltemplate configuration to prevent unnecessary "Slow setup for development" warnings when using Procfiles withbin/dev.Changes
compile: falsein default section - This becomes the default for development and production environmentscompile: truefrom development section - Now inheritscompile: falsefrom defaultcompile: truein test section - Tests still need on-demand compilationcompile: truevsfalseProblem Solved
Previously, the installer generated:
This caused Rails to attempt on-demand asset compilation even when
bin/shakapacker-dev-serverorbin/shakapacker --watchwere already running via Procfiles, resulting in this warning on every request:After This Fix
The generated configuration now follows best practices:
Impact
compile: false)Test Plan
To test the fix:
bin/dev(which starts rails server + shakapacker-dev-server)🤖 Generated with Claude Code
This change is
Summary by CodeRabbit