2

In official discourse repository there's a discourse.pill file for bluepill gem and it uses rvm.

Because I'm using rbenv I need that script to use rbenv (and I'm bad at environment stuff).

How I can convert this script, probably only this snippet of 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
megas
  • 21,401
  • 12
  • 79
  • 130

1 Answers1

2

We have come to hate bluepill and recommend running your Discourse instance using the docker images.

ZogStriP
  • 567
  • 1
  • 9
  • 25