title: Discourse bluepill to use rbenv
body: <p>In official discourse repository there's a <a href="https://github.com/discourse/discourse/blob/master/config/discourse.pill.sample" rel="nofollow">discourse.pill</a> file for <a href="https://github.com/bluepill-rb/bluepill" rel="nofollow">bluepill gem</a> and it uses rvm.</p>
  
  <p>Because I'm using rbenv I need that script to use rbenv (and I'm bad at environment stuff). </p>
  
  <p>How I can convert this script, probably only this snippet of code?</p>
  
  <pre><code>bootup_bundle = [ "#{ENV['HOME']}/.rvm/bin/rvm/bootup_bundle",
                    "/usr/local/rvm/bin/rvm/bootup_bundle",
                    `which bootup_bundle`.strip,
                  ].each do |location|
    if File.exist? location
      break location
    end
  end
  </code></pre>