News for hackers. Stuff that matters.
Re:Using pry in production by MaxGabriel on Friday February 14, 2014 @06:38PM (#7241848)
Cool. I'd really like to use pry for my production console. Is there a way to start a Rails Pry console in production without forcing my coworkers to do the same?

A slight twist on 'Pry in Production' I've done is to drop a call to `binding.pry` in the code on a staging server. Then I can step through production data and inspect what's going on.

Re:Using pry in production by coderaptor on Friday February 14, 2014 @09:32PM (#7242386)
> $ RAILS_ENV=production bin/pry -r ./config/environment
Re:Using pry in production by michaelmior on Friday February 14, 2014 @06:49PM (#7241907)
Installing the pry gem doesn't stop anyone from using irb if they prefer.
Re:Using pry in production by MaxGabriel on Friday February 14, 2014 @08:56PM (#7242291)
The way the article does it (using pry rails) will make 'rails console' use pry, so it does affect my coworkers.

https://github.com/rweng/pry-rails/blob/master/Readme.md

Re:Using pry in production by michaelmior on Friday February 14, 2014 @09:21PM (#7242360)
Ah, got it. I misunderstood your question.