-
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 :tailwindcss dies silently after some time when using docker. #506
Comments
Hi. Sorry you're having a problem. Can you share what version of tailwindcss-ruby you're using? It would be good to know if this is an issue with the v3 CLI or the v4 CLI (or both). |
No sorry :-). I'm not even sure if it's really only my problem. My Gemfile.lock shows the following:
I noticed that it doesn't stop but it seems like it gets stuck while compiling. In this case I trigger a compile by saving a random file. Every 8th time it hangs.
I think I may even mix the issue. As said, in other project, I'm fine the whole day, go sleep, come back and tailwindcss is not compiling anymore. Triggering a build every second never makes it get stuck. It just works.
|
Well, it's interesting that you're using tailwindcss-ruby v3, because that's shipping the very stable tailwindcss CLI from v3. Have you tried the suggestions from the README's troubleshooting guide related to docker containers: https://github.com/rails/tailwindcss-rails?tab=readme-ov-file#running-in-a-docker-container-exits-prematurely |
I apologize for the vague issue description.
I'm using the Puma plugin with
plugin :tailwindcss
in mypuma.rb
file, as outlined in theREADME.md
. It works perfectly and boots up without any issues. However, after some hours or days, the Tailwind CSS plugin silently stops working—it either dies or no longer detects changes. At that point, I have to restart the Puma process. There are no logs indicating that it has crashed or stopped, and I can’t find any trace of what’s happening.This issue occurs across multiple setups: Rails 7.2, Rails 8.0, Puma 6.5, tailwindcss-rails 3.4, Ruby 3.3, and Ruby 3.4. Interestingly, I haven’t noticed this behavior when running natively on macOS, but it happens frequently across various projects when using Docker. I’m using the official Ruby Docker Debian image (https://hub.docker.com/_/ruby/). In some projects, I’ve even followed the official Rails Dockerfile example.
I suspect it might be related to running out of file watchers, but Rails itself continues to detect code changes without any problems—it’s only Tailwind CSS that stops compiling.
I’m perfectly fine if this issue gets closed due to lack of reproducibility. My goal is simply to see if anyone else has encountered the same problem and can provide additional insights or data points. That’s all I’m hoping for.
For now, the workaround is straightforward: just restart the process. This is only in development, not production, so it’s not a critical issue.
The text was updated successfully, but these errors were encountered: