pry-plus
pry-plus copied to clipboard
pry and pry-plus in production
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?
+1
Fixed this by putting the line
ENV['PRY_PEEK'] = ''
at the top of my unicorn config file.