createHostingEnvironment function

HostEnvironment createHostingEnvironment(
  1. Configuration hostConfiguration
)

Implementation

HostEnvironment createHostingEnvironment(Configuration hostConfiguration) {
  var hostingEnvironment = HostingEnvironment()
    ..applicationName =
        hostConfiguration[host_defaults.applicationKey] ?? 'application'
    ..environmentName = hostConfiguration[host_defaults.environmentKey] ??
        Environments.production
    ..contentRootPath = resolveContentRootPath(
      hostConfiguration[host_defaults.contentRootKey],
      p.current,
    );

  return hostingEnvironment;
}