131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
# File 'lib/mongrel_jcluster/init.rb', line 131
def configure
options [
["-e", "--environment ENV", "Rails environment to run as", :@environment, nil],
['-p', '--port PORT', "Starting port to bind to", :@port, 3000],
['-a', '--address ADDR', "Address to bind to", :@address, nil],
['-l', '--log FILE', "Where to write log messages", :@log_file, nil],
['-P', '--pid FILE', "Where to write the PID", :@pid_file, "log/mongrel.pid"],
['-c', '--chdir PATH', "Change to dir before starting (will be expanded)", :@cwd, nil],
['-t', '--timeout SECONDS', "Timeout all requests after SECONDS time", :@timeout, nil],
['-m', '--mime PATH', "A YAML file that lists additional MIME types", :@mime_map, nil],
['-r', '--root PATH', "Set the document root (default 'public')", :@docroot, nil],
['-n', '--num-procs INT', "Number of processor threads to use", :@num_procs, nil],
['-B', '--debug', "Enable debugging mode", :@debug, nil],
['-S', '--script PATH', "Load the given file as an extra config script.", :@config_script, nil],
['-N', '--num-servers INT', "Number of Mongrel servers", :@servers, 2],
['-C', '--config PATH', "Path to cluster configuration file", :@config_file, "config/mongrel_jcluster.yml"],
['-R', '--jport PORT', "Local port where JRuby server should run", :@jport, 19222],
['-K', '--jkey KEY', "Key to use for connecting to JRuby server", :@jkey, nil],
['', '--user USER', "User to run as", :@user, nil],
['', '--group GROUP', "Group to run as", :@group, nil],
['', '--prefix PREFIX', "Rails prefix to use", :@prefix, nil]
]
end
|