mirror of
https://github.com/discourse/discourse.git
synced 2025-10-03 17:21:20 +08:00
DEV: Fix Unicorn reloading (#34980)
Recently we replaced the `pry-byebug` gem by the `debug` one. It broke the auto-reload mechanism we have in the development environment for Unicorn. Indeed, the `debug` gem by default will add an `at_exit` hook that will wait for all its children to exit. It clashes with our own mechanism. The workaround is to require `debug/prelude` instead of `debug`: the `debugger` command and breakpoints will still work but without the hook being set.
This commit is contained in:
parent
667f525292
commit
2e47ee8a9e
1 changed files with 1 additions and 1 deletions
2
Gemfile
2
Gemfile
|
@ -143,7 +143,7 @@ group :test, :development do
|
|||
gem "shoulda-matchers", require: false
|
||||
gem "rspec-html-matchers"
|
||||
gem "pry-stack_explorer", require: false
|
||||
gem "debug", ">= 1.0.0"
|
||||
gem "debug", ">= 1.0.0", require: "debug/prelude"
|
||||
gem "rubocop-discourse", require: false
|
||||
gem "parallel_tests"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue