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.
FILE_LOCATION | = | File.expand_path(__FILE__) | ||
PACKAGE_NAME | = | 'passenger' | Version numbers ###### | |
VERSION_STRING | = | '4.0.18' | Run ‘rake ext/common/Constants.h’ after changing this number. | |
PREFERRED_NGINX_VERSION | = | '1.4.2' | ||
NGINX_SHA256_CHECKSUM | = | '5361ffb7b0ebf8b1a04369bc3d1295eaed091680c1c58115f88d56c8e51f3611' | ||
PREFERRED_PCRE_VERSION | = | '8.32' | ||
PCRE_SHA256_CHECKSUM | = | 'd5d8634b36baf3d08be442a627001099583b397f456bc795304a013383b6423a' | ||
STANDALONE_INTERFACE_VERSION | = | 1 | ||
GLOBAL_NAMESPACE_DIRNAME | = | "passenger" | Directories ###### | |
USER_NAMESPACE_DIRNAME | = | ".passenger" | Subdirectory under $HOME to use for storing stuff. | |
PLUGIN_DIRS | = | [ "/usr/share/#{GLOBAL_NAMESPACE_DIRNAME}/plugins", "/usr/local/share/#{GLOBAL_NAMESPACE_DIRNAME}/plugins", "~/#{USER_NAMESPACE_DIRNAME}/plugins" | Directories in which to look for plugins. | |
REQUIRED_LOCATIONS_INI_FIELDS | = | [ :bin_dir, :agents_dir, :lib_dir, :helper_scripts_dir, :resources_dir, :include_dir, :doc_dir, :ruby_libdir, :apache2_module_path, :ruby_extension_source_dir, :nginx_module_source_dir | ||
OPTIONAL_LOCATIONS_INI_FIELDS | = | [ # Directory in which downloaded Phusion Passenger binaries are stored. # Only available when originally packaged. :download_cache_dir | ||
BINARIES_URL_ROOT | = | "https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release" | Other resource locations ###### | |
PASSENGER_ANALYTICS_WEB_LOG | = | "PASSENGER_ANALYTICS_WEB_LOG".freeze | ||
PASSENGER_TXN_ID | = | "PASSENGER_TXN_ID".freeze | ||
PASSENGER_UNION_STATION_KEY | = | "UNION_STATION_KEY".freeze | ||
RACK_HIJACK_IO | = | "rack.hijack_io".freeze |
Whether the current Phusion Passenger installation is installed from a release package, e.g. an official gem or official tarball. Retruns false if e.g. the gem was built by the user, or if this install is from a git repository.
Returns whether this Phusion Passenger installation is in the ‘originally packaged’ configuration (as opposed to the ‘natively packaged’ configuration.