Sha256: 587f5a1b6b9eec6aec0f936279392eccffe40113ec9a24c9259b8bd312eb2796

Contents?: true

Size: 1.74 KB

Versions: 2

Compression:

Stored size: 1.74 KB

Contents

#! /usr/bin/env jruby

# == Synopsis
#
# glassfish: GlassFish v3 server for Rack based frameworks such as: Rails, Merb, Sinatra...
#
# == Usage:
#
# glassfish [OPTION] APPLICATION_PATH
#
# -h, --help::
#    show help
#
# -c, --contextroot PATH::
#    change the context root (default: '/')
#
# -p, --port PORT::
#    change server port (default: 3000)
#
# -a, --address HOST::
#    bind to HOST address (default: 0.0.0.0)
#
# -e, --environment ENV::
#    change rails environment (default: development)
#
# -n --runtimes NUMBER::
#    Number of JRuby runtimes to create initially
#
# --runtimes-min NUMBER::
#    Minimum JRuby runtimes to create
#
# --runtimes-max NUMBER::
#    Maximum number of JRuby runtimes to create
#
# -d, --daemon::
#   Run GlassFish as daemon. Currently works with Linux and Solaris OS.
#
# -P, --pid FILE::
#   PID file where PID will be written. Applicable when used with -d option. The default pid file is tmp/pids/glassfish-<PID>.pid
#
# -l, --log FILE::
#   Log file, where the server log messages will go. By default the server logs go to log/development.log file. To see the logs on console run with -l option without any argument.
#
# --log-level LEVEL::
#   Log level 0 to 7, or equivalent name as string. Default is 3 (or INFO). 0 (OFF), 1 (SEVERE), 2 (WARNING), 3 (INFO), 4 (FINE), 5 (FINER), 6 (FINEST), 7 (ALL).
#
# --config FILE::
#   Configuration file location. Use glassfish.yml as template. Generate it using 'gfrake config' command.
#
# APPLICATION_PATH (optional):  Path to the application to be run (default: current).
#
# For further configuration, run GlassFish rake command 'gfrake -T'

require 'glassfish'

options = GlassFish::CommandLineParser.new.parse

ENV['RAILS_ENV'] = options[:environment]

GlassFish::Server.start options

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
glassfish-1.0.3-universal-java bin/glassfish
glassfish-1.0.3.beta.1-universal-java bin/glassfish