Replaces Hosting:Environment with new values in docs
This commit is contained in:
parent
32740d67a7
commit
2e07ddee45
|
|
@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Hosting
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the name of the environment. This property is automatically set by the host to the value
|
/// Gets or sets the name of the environment. This property is automatically set by the host to the value
|
||||||
/// of the "Hosting:Environment" (on Windows) or "Hosting__Environment" (on Linux & OS X) environment variable.
|
/// of the "ASPNETCORE_ENVIRONMENT" environment variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
// This must be settable!
|
// This must be settable!
|
||||||
string EnvironmentName { get; set; }
|
string EnvironmentName { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -87,10 +87,10 @@ namespace Microsoft.AspNetCore.Server.Testing
|
||||||
|
|
||||||
private void SetAspEnvironmentWithJson()
|
private void SetAspEnvironmentWithJson()
|
||||||
{
|
{
|
||||||
////S Drop a hosting.json with Hosting:Environment information.
|
////S Drop a hosting.json with environment information.
|
||||||
// Logger.LogInformation("Creating hosting.json file with Hosting:Environment.");
|
// Logger.LogInformation("Creating hosting.json file with environment information.");
|
||||||
// var jsonFile = Path.Combine(DeploymentParameters.ApplicationPath, "hosting.json");
|
// var jsonFile = Path.Combine(DeploymentParameters.ApplicationPath, "hosting.json");
|
||||||
// File.WriteAllText(jsonFile, string.Format("{ \"Hosting:Environment\":\"{0}\" }", DeploymentParameters.EnvironmentName));
|
// File.WriteAllText(jsonFile, string.Format("{ \"environment\":\"{0}\" }", DeploymentParameters.EnvironmentName));
|
||||||
}
|
}
|
||||||
|
|
||||||
private class IISApplication
|
private class IISApplication
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue