Created
October 27, 2008 21:21
-
-
Save wycats/20193 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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