Sha256: dc6e51fe8296b3ca8cf9f04aeffaf1d04f2fe16d41a2966544490dd202f5414a

Contents?: true

Size: 1.04 KB

Versions: 8

Compression:

Stored size: 1.04 KB

Contents

#!/usr/bin/env jruby

# == Synopsis
#
# jetty_merb: jetty server for merb applications
#
# == Usage
#
# jetty_merb [OPTION] ... BASEDIR
#
# -h, --help::
#    show help
#
# --context-path PATH, -u PATH::
#    change the application context path (default: '/')
#
# --port PORT, -p PORT::
#    change server port (default: 4000)
#
# --environment ENV, -e ENV::
#    change rails environment (default: development)
#
# --classes CLASSES_DIR::
#    directory containing java classes used by the application (default: 'classes/')
#
# --lib LIB_DIR, --jars LIB_DIR::
#    directory containing jars used by the application (default: 'lib/')
#
# --config FILE, -c FILE:: (optional)
#	config file to use instead of command line switches (allows for multiple servers)
#
# BASEDIR (optional): directory to be run (default: current).

require "java"
$LOAD_PATH << "#{File.dirname(__FILE__)}/../lib"
$LOAD_PATH << "#{File.dirname(__FILE__)}/../jetty-libs"
require "jetty_rails"

options = CommandLineReader.new.read(:merb)
runner = JettyRails::Runner.new(options)
runner.start

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
mikewadhera-jetty-rails-0.9.1 bin/jetty_merb
mikewadhera-jetty-rails-0.9.2 bin/jetty_merb
mikewadhera-jetty-rails-0.9.3 bin/jetty_merb
mikewadhera-jetty-rails-0.9 bin/jetty_merb
nolman-jetty-rails-0.9.6-jruby bin/jetty_merb
jetty-rails-0.8.1 bin/jetty_merb
jetty-rails-0.7 bin/jetty_merb
jetty-rails-0.8 bin/jetty_merb