Skip to content

Instantly share code, notes, and snippets.

@wycats
Created October 27, 2008 21:21
Show Gist options
  • Save wycats/20193 to your computer and use it in GitHub Desktop.
Save wycats/20193 to your computer and use it in GitHub Desktop.
#load required files
require 'rubygems'
gem 'merb-core', '>= 0'
require 'merb-core'
require 'rack/handler/grizzly'
require 'rack/adapter/merb'
require 'jruby/rack/grizzly_helper'
Merb::Rack::Adapter.register %w{grizzly}, :GrizzlyMerb
# Set up the server and log stream, supress merb signal trapping
Merb.disable(:signals)
# Start merb
Merb.start({
:merb_root => $glassfish_appRoot,
:adapter => "grizzly",
:log_level => :debug,
:path_prefix => $root
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment