3 ms·
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 sam
by MaxGabriel 13y ago
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.
- michaelmior 13y agoInstalling the pry gem doesn't stop anyone from using irb if they prefer.
- MaxGabriel 13y agoThe 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 https://github.com/rweng/pry-rails/blob/master/Readme.md
- michaelmior 13y agoAh, got it. I misunderstood your question.
- coderaptor 13y ago> $ RAILS_ENV=production bin/pry -r ./config/environment