From 523df7f316f647b7f0af6e6c599e691754dd189f Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Sun, 18 Jun 2023 23:04:30 +0200 Subject: [PATCH] Run the server with remote debugging enabled When running inside foreman the 'debug' gem will not have a proper TTY available. Running with the `--open` option enabled allows to start remote sessions and attach a debugger client with `rdbg --attach`. --- lib/install/Procfile.dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/install/Procfile.dev b/lib/install/Procfile.dev index cb7c9aa..0fc822f 100644 --- a/lib/install/Procfile.dev +++ b/lib/install/Procfile.dev @@ -1,2 +1,2 @@ -web: unset PORT && bin/rails server +web: unset PORT && env RUBY_DEBUG_OPEN=true bin/rails server css: yarn build:css --watch