Module PhusionPassenger::Standalone
In: src/ruby_supportlib/phusion_passenger/standalone/command.rb
src/ruby_supportlib/phusion_passenger/standalone/config_options_list.rb
src/ruby_supportlib/phusion_passenger/standalone/app_finder.rb
src/ruby_supportlib/phusion_passenger/standalone/config_utils.rb
src/ruby_supportlib/phusion_passenger/standalone/stop_command.rb
src/ruby_supportlib/phusion_passenger/standalone/start_command/nginx_engine.rb
src/ruby_supportlib/phusion_passenger/standalone/start_command/builtin_engine.rb
src/ruby_supportlib/phusion_passenger/standalone/start_command.rb
src/ruby_supportlib/phusion_passenger/standalone/control_utils.rb
src/ruby_supportlib/phusion_passenger/standalone/version_command.rb
src/ruby_supportlib/phusion_passenger/standalone/status_command.rb
src/ruby_supportlib/phusion_passenger/standalone/main.rb

Core of the `passenger` command (Passenger Standalone). Dispatches a subcommand to a specific class.

Methods

help   run!  

Classes and Modules

Module PhusionPassenger::Standalone::ConfigUtils
Module PhusionPassenger::Standalone::ControlUtils
Class PhusionPassenger::Standalone::AppFinder
Class PhusionPassenger::Standalone::Command
Class PhusionPassenger::Standalone::StartCommand
Class PhusionPassenger::Standalone::StatusCommand
Class PhusionPassenger::Standalone::StopCommand
Class PhusionPassenger::Standalone::VersionCommand

Constants

SERVER_CONFIG_SPEC = [ { :name => :address, :type => :hostname, :type_desc => 'HOST', :short_cli => '-a', :default => '0.0.0.0', :desc => "Bind to the given address.\n" \ "Default: %DEFAULT%"   Server configuration options
APPLICATION_LOADING_CONFIG_SPECS = [ { :name => :environment, :type_desc => 'NAME', :short_cli => '-e', :default => ENV['RAILS_ENV'] || ENV['RACK_ENV'] || ENV['NODE_ENV'] || ENV['PASSENGER_APP_ENV'] || 'development', :desc => "Web framework environment. Default:\n" \ "%DEFAULT%"   Application loading configuration options
PROCESS_MANAGEMENT_CONFIG_SPECS = [ { :name => :max_pool_size, :type => :integer, :min => 1, :desc => "Maximum number of application processes.\n" \ "Default: #{DEFAULT_MAX_POOL_SIZE}"   Process management configuration options
REQUEST_HANDLING_CONFIG_SPECS = [ { :name => :max_request_time, :type => :integer, :type_desc => 'SECONDS', :min => 0, :desc => "Abort requests that take too much time\n" \ '(Enterprise only)'   Request handling configuration options
UNION_STATION_CONFIG_SPECS = [ { :name => :union_station_gateway_address, :cli => nil   Union Station configuration options
NGINX_ENGINE_CONFIG_SPECS = [ { :name => :nginx_bin, :type => :path, :type_desc => 'FILENAME', :desc => 'Nginx binary to use as core'   Nginx engine configuration options
ADVANCED_CONFIG_SPECS = [ { :name => :engine, :type_desc => 'NAME', :default => 'nginx', :desc => "Underlying HTTP engine to use. Available\n" \ "options: nginx (default), builtin"   Advanced configuration options
CONFIG_SPECS = [ SERVER_CONFIG_SPEC, APPLICATION_LOADING_CONFIG_SPECS, PROCESS_MANAGEMENT_CONFIG_SPECS, REQUEST_HANDLING_CONFIG_SPECS, UNION_STATION_CONFIG_SPECS, NGINX_ENGINE_CONFIG_SPECS, ADVANCED_CONFIG_SPECS
CONFIG_DEFAULTS = {}   Maps configuration options to their default value. Automatically set by code later in this file.

To inspect the value of this array, run:

  ./dev/runner -r standalone/config_options_list -r pp      #     'pp Standalone::CONFIG_DEFAULTS; nil'
CONFIG_NAME_INDEX = {}   Indexes all configuration specification items by name.

To inspect the value of this array, run:

  ./dev/runner -r standalone/config_options_list -r pp      #     'pp Standalone::CONFIG_NAME_INDEX; nil'
KNOWN_COMMANDS = [ ["start", "StartCommand"], ["stop", "StopCommand"], ["status", "StatusCommand"], ["version", "VersionCommand"]

Public Class methods

[Validate]