-
Notifications
You must be signed in to change notification settings - Fork 185
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
Puma plugin dependencies are not required #458
Comments
Yup, that's a use case I don't think we had thought of. I'll look into it. |
that is, not in `rails server`. Closes #458
Proposed improvement at #459 |
Hmm. Note that even if we include @indirect Is there a good reason not to just add |
I've loosened the dependency on |
Awesome, thanks for the quick response and quick turnaround! |
❤️❤️❤️😀
…On Mon, 20 Jan, 2025, 2:08 am André Arko, ***@***.***> wrote:
Awesome, thanks for the quick response and quick turnaround!
—
Reply to this email directly, view it on GitHub
<#458 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BFAZ52BGBSYRU7E2WTPOZJT2LQENVAVCNFSM6AAAAABVOSHEROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBRGAYTGNBSHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Is there a chance you would consider updating the plugin to function correctly when puma is run directly, without getting run via
rails s
?The Puma plugin is fantastic, and I would like to use it everywhere I use Puma, including with puma-dev. Unfortunately, the plugin uses constants and methods that are defined by libraries it does not require, like
Tailwindcss::Commands
andRails.root
. When run viarails s
it just happens to work because the Rails boot process is finished before Rails starts Puma.It's easy to reproduce this issue, just choose any app with the Puma plugin and run
bundle exec puma
. You'll see a backtrace like this one:To demonstrate that the issue is the plugin running code that it has not required, you can stop Puma from crashing by requiring the Rails app before the plugin runs, by adding this line directly before the call to
plugin :tailwindcss
:Anyway, if possible, I would love for the plugin to not crash Puma when Puma is run directly. Thanks!
The text was updated successfully, but these errors were encountered: