From 90b57dfce0d7af4fe573d05c53a98e5e3b3e501c Mon Sep 17 00:00:00 2001 From: austin f Date: Sun, 25 May 2025 01:03:10 -0700 Subject: [PATCH] Expand Procfile.dev processes and document foreman --- Procfile.dev | 1 + README.md | 3 +++ bin/dev | 2 ++ 3 files changed, 6 insertions(+) diff --git a/Procfile.dev b/Procfile.dev index da151fe..a005bac 100644 --- a/Procfile.dev +++ b/Procfile.dev @@ -1,2 +1,3 @@ web: bin/rails server css: bin/rails tailwindcss:watch +jobs: bin/jobs start diff --git a/README.md b/README.md index 1fe6239..11906fd 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,9 @@ bin/rails db:prepare # 4. Run bin/dev +# bin/dev uses Foreman with Procfile.dev to run the Rails server, +# TailwindCSS watcher, and job processor. Add new processes to +# Procfile.dev as needed. bundle exec rspec ``` diff --git a/bin/dev b/bin/dev index ad72c7d..c364f6c 100755 --- a/bin/dev +++ b/bin/dev @@ -8,6 +8,8 @@ fi # Default to port 3000 if not specified export PORT="${PORT:-3000}" +# Foreman reads Procfile.dev to start multiple services at once +# (Rails server, Tailwind watcher, jobs, etc). # Let the debug gem allow remote connections, # but avoid loading until `debugger` is called export RUBY_DEBUG_OPEN="true"