Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pry and pry-plus in production #2

Open
codesnik opened this issue Aug 23, 2013 · 2 comments
Open

pry and pry-plus in production #2

codesnik opened this issue Aug 23, 2013 · 2 comments

Comments

@codesnik
Copy link

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?

@Rockfordal
Copy link

+1

@djmaze
Copy link

djmaze commented Apr 2, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants