Quick Tutorial: Bundling a merb application to a .war

  • Make sure you have the JRuby warbler gem installed.
  • Create a warble config file from the root directory of your merb application. The command should look something like this: jruby -S warble config. The file will be placed at config/warble.rb.
  • Edit line 55 of warble.rb to read: config.webxml.booter = :merb
  • Edit line 33 of warble.rb to read: config.gems = ["merb-core","merb-more"]. Add other required gems, if necessary.
  • At the root directory of your web application, run: jruby -S warble.
  • Deploy the war.
Tagged , . Bookmark the permalink. Comments are closed, but you can leave a trackback: Trackback URL.