Skip to content

Commit 99a2e99

Browse files
authored
Merge pull request #575 from venarius/patch-1
Added docker troubleshooting info to README
2 parents a1bf23c + 289b782 commit 99a2e99

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* [Rails Engines support (Experimental)](#rails-engines-support-experimental)
2727
- [Troubleshooting](#troubleshooting)
2828
* [The `watch` command is hanging](#the-watch-command-is-hanging)
29+
* [The `build` command (or `bin/rails assets:precompile`) is hanging inside a docker container](#the-build-command-or-binrails-assetsprecompile-is-hanging-inside-a-docker-container)
2930
* [Lost keystrokes or hanging when using terminal-based debugging tools (e.g. IRB, Pry, `ruby/debug`...etc.) with the Puma plugin](#lost-keystrokes-or-hanging-when-using-terminal-based-debugging-tools-eg-irb-pry-rubydebugetc-with-the-puma-plugin)
3031
* [Running in a docker container exits prematurely](#running-in-a-docker-container-exits-prematurely)
3132
* [Conflict with sassc-rails](#conflict-with-sassc-rails)
@@ -428,6 +429,10 @@ There is a [known issue](https://github.com/tailwindlabs/tailwindcss/issues/1724
428429
429430
Please try uninstalling `watchman` and try running the watch task again.
430431
432+
### The `build` command (or `bin/rails assets:precompile`) is hanging inside a docker container
433+
434+
Without a `WORKDIR`, tailwind may search the entire filesystem for files with CSS class names. So, please make sure your Dockerfile uses a `WORKDIR`.
435+
431436
### Lost keystrokes or hanging when using terminal-based debugging tools (e.g. IRB, Pry, `ruby/debug`...etc.) with the Puma plugin
432437
433438
We've addressed the issue and you can avoid the problem by upgrading `tailwindcss-rails` to [v2.4.1](https://github.com/rails/tailwindcss-rails/releases/tag/v2.4.1) or later versions.

0 commit comments

Comments
 (0)