# File src/ruby_supportlib/phusion_passenger/standalone/config_utils.rb, line 128 def load_env_config config = {} pwd = Dir.logical_pwd ENV.each_pair do |name, value| next if name !~ /^PASSENGER_(.+)/ key = $1.downcase.to_sym spec_item = CONFIG_NAME_INDEX[key] next if !spec_item next if !config_type_supported_in_envvar?(spec_item[:type]) next if value.empty? begin config[key] = parse_config_value(spec_item, value, pwd) rescue ConfigLoadError => e raise ConfigLoadError, "cannot parse environment variable '#{name}' " \ "(#{e.message})" end end config end