+ running junebug under mh2

why the lucky stiff why at hobix.com
Sat Jan 6 02:24:37 EST 2007


MouseHole2 is built on Camping, so you can put Camping apps right in the
~/.mouseHole/ directory and they'll startup.  Camping's blog example, Tepee,
etc.

Junebug is written in Camping and follows Camping's rules, but is distributed as
a Gem.  So I looked into what it would take to run it under MouseHole 2.

Yeah, these five lines:

  require 'junebug/config'
  JUNEBUG_ROOT = ENV['JUNEBUG_ROOT'] = File.join(Junebug::Config.rootdir, "deploy")
  require(Junebug::Config.script)
  
  def Junebug.config; {'startpage' => 'Home_Page'}; end
  Junebug.create

To install Junebug: gem install junebug.

Then put the above code in a new file ~/.mouseHole/junebug.app.rb.  And start up
mouseHole and it'll be mounted at http://localhost:3704/junebug.

_why


More information about the Mousehole-scripters mailing list