We lazy load as many libraries as possible not only to improve startup performance, but also to ensure that we don‘t require libraries before we‘ve passed the dependency checking stage of the runtime installer.
IMPORTANT: do not directly or indirectly require native_support; we can‘t compile it yet until we have a compiler, and the runtime installer is supposed to check whether a compiler is installed.
VERSION_STRING | = | '3.0.17' | Phusion Passenger version number. Don‘t forget to edit ext/common/Constants.h too. | |
PREFERRED_NGINX_VERSION | = | '1.2.3' | ||
PREFERRED_PCRE_VERSION | = | '8.31' | ||
STANDALONE_INTERFACE_VERSION | = | 1 | ||
NATIVELY_PACKAGED_SOURCE_ROOT | = | "/usr/share/phusion-passenger/source" | ||
NATIVELY_PACKAGED_DOCDIR | = | "/usr/share/doc/phusion-passenger" | ||
NATIVELY_PACKAGED_RESOURCES_DIR | = | "/usr/share/phusion-passenger" | ||
NATIVELY_PACKAGED_AGENTS_DIR | = | "/usr/lib/phusion-passenger/agents" | ||
NATIVELY_PACKAGED_HELPER_SCRIPTS_DIR | = | "/usr/share/phusion-passenger/helper-scripts" | ||
NATIVELY_PACKAGED_APACHE2_MODULE | = | "/usr/lib/apache2/modules/mod_passenger.so" | ||
LIBDIR | = | File.expand_path(File.dirname(__FILE__)) | Directory containing the Phusion Passenger Ruby libraries. | |
TEMPLATES_DIR | = | File.join(LIBDIR, "phusion_passenger", "templates") | Directory containing templates. | |
LOCAL_DIR | = | ".passenger" | Subdirectory under $HOME to use for storing resource files. | |
PLUGIN_DIRS | = | ["/usr/share/phusion-passenger/plugins", "/usr/local/share/phusion-passenger/plugins", "~/#{LOCAL_DIR}/plugins"] | Directories in which to look for plugins. | |
LOCAL_STANDALONE_RESOURCE_DIR | = | File.join(LOCAL_DIR, "standalone") | Directory under $HOME for storing Phusion Passenger Standalone resource files. | |
GLOBAL_STANDALONE_RESOURCE_DIR | = | "/var/lib/passenger-standalone" | System-wide directory for storing Phusion Passenger Standalone resource files. | |
SOURCE_ROOT | = | File.expand_path(File.join(LIBDIR, "..")) | Top directory of the Phusion Passenger source code. | |
DOCDIR | = | File.join(SOURCE_ROOT, "doc") | Documentation directory. | |
RESOURCES_DIR | = | File.join(SOURCE_ROOT, "resources") | Directory containing Phusion Passenger resource files. | |
AGENTS_DIR | = | File.join(SOURCE_ROOT, "agents") | ||
HELPER_SCRIPTS_DIR | = | File.join(SOURCE_ROOT, "helper-scripts") | ||
APACHE2_MODULE | = | File.join(SOURCE_ROOT, "ext", "apache2", "mod_passenger.so") | Location of the Apache 2 module. | |
NATIVE_SUPPORT_DIR | = | File.join(SOURCE_ROOT, "ext", "ruby") | Directory possibly containing #{archdir}/passenger_native_support.so. Not available when natively packaged. | |
SOURCE_ROOT | = | NATIVELY_PACKAGED_SOURCE_ROOT | ||
DOCDIR | = | NATIVELY_PACKAGED_DOCDIR | ||
RESOURCES_DIR | = | NATIVELY_PACKAGED_RESOURCES_DIR | ||
AGENTS_DIR | = | NATIVELY_PACKAGED_AGENTS_DIR | ||
HELPER_SCRIPTS_DIR | = | NATIVELY_PACKAGED_HELPER_SCRIPTS_DIR | ||
APACHE2_MODULE | = | NATIVELY_PACKAGED_APACHE2_MODULE | ||
STANDALONE_BINARIES_URL_ROOT | = | "http://standalone-binaries.modrails.com" | Other resource locations ###### | |
DEFAULT_FRAMEWORK_SPAWNER_MAX_IDLE_TIME | = | 30 * 60 | ||
DEFAULT_APP_SPAWNER_MAX_IDLE_TIME | = | 10 * 60 | ||
ROOT_UID | = | 0 | ||
ROOT_GID | = | 0 | ||
PASSENGER_ANALYTICS_WEB_LOG | = | "PASSENGER_ANALYTICS_WEB_LOG" | ||
PASSENGER_TXN_ID | = | "PASSENGER_TXN_ID" | ||
PASSENGER_GROUP_NAME | = | "PASSENGER_GROUP_NAME" | ||
PASSENGER_UNION_STATION_KEY | = | "PASSENGER_UNION_STATION_KEY" |
_spawn_options | [RW] | Set during spawning, and set back to nil when spawning is done. |