pry/pry — Issue #477: Pry can't run without HOME set
Author: aalin
Created: 2012-02-15 10:28:58+00:00
State: open

coruscant.local ~ ➔ export HOME=
coruscant.local ~rvm_prefix ➔ pry
/Users/andreas/.rvm/gems/ruby-1.9.3-p0/gems/pry-0.9.8.1/lib/pry/pry_class.rb:252:in `expand_path': non-absolute home (ArgumentError)
from /Users/andreas/.rvm/gems/ruby-1.9.3-p0/gems/pry-0.9.8.1/lib/pry/pry_class.rb:252:in `set_config_defaults'
from /Users/andreas/.rvm/gems/ruby-1.9.3-p0/gems/pry-0.9.8.1/lib/pry/pry_class.rb:294:in `reset_defaults'
from /Users/andreas/.rvm/gems/ruby-1.9.3-p0/gems/pry-0.9.8.1/lib/pry/pry_class.rb:332:in `init'
from /Users/andreas/.rvm/gems/ruby-1.9.3-p0/gems/pry-0.9.8.1/lib/pry/pry_class.rb:354:in `'
from /Users/andreas/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/andreas/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/andreas/.rvm/gems/ruby-1.9.3-p0/gems/pry-0.9.8.1/lib/pry.rb:203:in `'
from /Users/andreas/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/andreas/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/andreas/.rvm/gems/ruby-1.9.3-p0/gems/pry-0.9.8.1/bin/pry:9:in `'
from /Users/andreas/.rvm/gems/ruby-1.9.3-p0/bin/pry:19:in `load'
from /Users/andreas/.rvm/gems/ruby-1.9.3-p0/bin/pry:19:in `

'

This is a problem for us because Unicorn doesn't have a proper environment set up when it starts our rails app, so when it loads pry it fails. :/

Or, if someone knows how to use pry-rails with bundler, without loading pry when starting the server, that information would be appreciated. :)