From c22c277f10f0d5c790c8874bee7b41f9b85ed045 Mon Sep 17 00:00:00 2001 From: Simon Chiu Date: Tue, 3 May 2022 15:50:25 -0400 Subject: [PATCH 1/2] Add notes for running tailwindcss:watch in Docker --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index d3f5bab6..35514ea7 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,11 @@ See https://bundler.io/man/bundle-config.1.html for more information. When running `tailwindcss` on an Alpine system, some users report a "No such file or directory" error message. +### Running the TailwindCSS watch command in Docker + +In order to run `bin/rails tailwindcss:watch` from a process, set `tty: true` in `docker-compose.yml` for the appropriate container. + + #### Install gnu libc compatibility The cause of this is the upstream `tailwindcss` binary executables being built on a gnu libc system, making them incompatible with standard musl libc systems. From 39cf3ed6c14d948bc581772e3188d2224b5f775b Mon Sep 17 00:00:00 2001 From: Simon Chiu Date: Wed, 11 May 2022 08:00:47 -0400 Subject: [PATCH 2/2] Move notes about Docker to the section under tailwindcss:watch --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 35514ea7..3ed4dc4d 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ The installer will create your Tailwind input file in `app/assets/stylesheets/ap If you need to use a custom input or output file, you can run `bundle exec tailwindcss` to access the platform-specific executable, and give it your own build options. -When you're developing your application, you want to run Tailwind in watch mode, so changes are automatically reflected in the generated CSS output. You can do this either by running `rails tailwindcss:watch` as a separate process, or by running `./bin/dev` which uses [foreman](https://github.com/ddollar/foreman) to starts both the Tailwind watch process and the rails server in development mode. +When you're developing your application, you want to run Tailwind in watch mode, so changes are automatically reflected in the generated CSS output. You can do this either by running `rails tailwindcss:watch` as a separate process, or by running `./bin/dev` which uses [foreman](https://github.com/ddollar/foreman) to starts both the Tailwind watch process and the rails server in development mode. If you are running `rails tailwindcss:watch` as a process in a Docker container, set `tty: true` in `docker-compose.yml` for the appropriate container to keep the watch process running. ## Installation @@ -83,11 +83,6 @@ See https://bundler.io/man/bundle-config.1.html for more information. When running `tailwindcss` on an Alpine system, some users report a "No such file or directory" error message. -### Running the TailwindCSS watch command in Docker - -In order to run `bin/rails tailwindcss:watch` from a process, set `tty: true` in `docker-compose.yml` for the appropriate container. - - #### Install gnu libc compatibility The cause of this is the upstream `tailwindcss` binary executables being built on a gnu libc system, making them incompatible with standard musl libc systems.