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"