From 3dfd6f7b5cf8775863bc24994037e3dd0d46e887 Mon Sep 17 00:00:00 2001 From: Cadu Ribeiro Date: Tue, 10 Oct 2023 13:29:07 -0300 Subject: [PATCH] Run the server with remote debugging enabled This commit adds the `--open` option so a remote session can be started using `rdbg --attach`. This allows to debug inside a foreman process. --- CHANGELOG.md | 3 +++ lib/install/Procfile.dev | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ad83495..a03a9cc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## next / unreleased + +* Update Procfile.dev to run foreman with `--open` option allowing remote sessions with `rdbg --attach` by @duduribeiro ## v2.0.30 / 2023-07-13 diff --git a/lib/install/Procfile.dev b/lib/install/Procfile.dev index 023e98a0..59915d58 100644 --- a/lib/install/Procfile.dev +++ b/lib/install/Procfile.dev @@ -1,2 +1,2 @@ -web: bin/rails server -p 3000 +web: env RUBY_DEBUG_OPEN=true bin/rails server -p 3000 css: bin/rails tailwindcss:watch