pry-plus icon indicating copy to clipboard operation
pry-plus copied to clipboard

pry and pry-plus in production

Open codesnik opened this issue 11 years ago • 2 comments

Hello. I'd like to have rails console using pry in RAILS_ENV=production too.

but if I have following in Gemfile

gem 'pry-rails' gem 'pry-plus', group: :development

then all the deps are loaded too, even in unicorn instances. My particular problem is with pry-rescue, intercepting SIGQUIT, and that's messes up with unicorn reloading.

Do you think it's possible to load pry-plus deps only when actually starting rails console?

codesnik avatar Aug 23 '13 11:08 codesnik

+1

Rockfordal avatar Nov 11 '13 10:11 Rockfordal

Fixed this by putting the line

ENV['PRY_PEEK'] = ''

at the top of my unicorn config file.

That prevents pry-rescue from catching the QUIT signal.

djmaze avatar Apr 02 '14 16:04 djmaze