From c8249a191a40c7b0f922886ed806476cd3c391ea Mon Sep 17 00:00:00 2001 From: Andre Arko Date: Fri, 5 Jan 2024 20:33:38 -0800 Subject: [PATCH] run the tailwind watcher as a puma plugin --- Procfile.dev | 1 - config/puma.rb | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Procfile.dev b/Procfile.dev index 023e98a0..21e70575 100644 --- a/Procfile.dev +++ b/Procfile.dev @@ -1,2 +1 @@ web: bin/rails server -p 3000 -css: bin/rails tailwindcss:watch diff --git a/config/puma.rb b/config/puma.rb index ce4878f4..08d53fbc 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -41,3 +41,5 @@ # Allow puma to be restarted by `bin/rails restart` command. plugin :tmp_restart + +plugin :tailwindcss if ENV.fetch("RAILS_ENV", "development") == "development"