Closed dseravalli closed 5 months ago
I had some issues with this as well, and solved it by adding the puma module to puma.rb rather than running everything within foreman or running a dedicated compose container. However, it still required me to add tty: true
to the compose entry for the rails server.
Sorry to hear you're having trouble with this feature. There are two other options you can try to use, which are documented in the README:
tailwindcss:watch[poll]
tailwindcss:watch[always]
Please note that this gem doesn't implement the file watching; we're using the upstream tailwindcss
executable's watch features for this. If you can't get it to work with either of these other options, you may want to ask for support upstream.
The CSS is built successfully when I first
docker-compose up
but doesn't rebuild when I edit and save files.Rails 7.0.4.3 tailwindcss-rails 2.0.29 MacOS Sonoma 14.2 Orbstack 1.3.0
tailwind.config.js content
docker-compose
Dockerfile.dev
Procfile.dev
/bin/dev