Puma plugin is not working with puma-dev #387
Unanswered
mikegabriel
asked this question in
Q&A
Replies: 1 comment
-
This can be fixed by prepending |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
Is anyone aware of a way to get the puma plugin working when using puma-dev to run the dev server?
I receive the following error in
~/Library/Logs/puma-dev.log
To make sure it wasn't a Gem compatibility issue, I started a new project with only the required changes to enable puma-dev and the plugin and I do get the same error.
I added the plugin into
config/puma.rb
:plugin :tailwindcss if ENV.fetch("RAILS_ENV", "development") == "development"
And I made sure that my puma-dev instance is loading that puma configuration file:
If I comment out the plugin, restart puma-dev with
puma-dev --stop
and reload the page, everything boots up normal. Repeat those steps but with the plugin enabled and it fails with:.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/tailwindcss-rails-2.6.5-x86_64-darwin/lib/puma/plugin/tailwindcss.rb:14:in 'block in start': uninitialized constant Tailwindcss (NameError)
My versions are:
Thanks
Beta Was this translation helpful? Give feedback.
All reactions