Skip to content

Commit 73ace31

Browse files
authored
Merge pull request #292 from elia/debug-lazy
Lazily load the debug gem
2 parents 3041a5b + 313f257 commit 73ace31

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Diff for: lib/install/Procfile.dev

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
web: env RUBY_DEBUG_OPEN=true bin/rails server -p 3000
1+
web: bin/rails server
22
css: bin/rails tailwindcss:watch

Diff for: lib/install/dev

+8
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,12 @@ if ! gem list foreman -i --silent; then
55
gem install foreman
66
fi
77

8+
# Default to port 3000 if not specified
9+
export PORT="${PORT:-3000}"
10+
11+
# Let the debug gem allow remote connections,
12+
# but avoid loading until `debugger` is called
13+
export RUBY_DEBUG_OPEN="true"
14+
export RUBY_DEBUG_LAZY="true"
15+
816
exec foreman start -f Procfile.dev "$@"

0 commit comments

Comments
 (0)