Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Replaces Hosting:Environment with new values in docs #662

Merged
merged 1 commit into from
Mar 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public interface IHostingEnvironment
{
/// <summary>
/// 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 &amp; OS X) environment variable.
/// of the "ASPNETCORE_ENVIRONMENT" environment variable.
/// </summary>
// This must be settable!
string EnvironmentName { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ public override void Dispose()

private void SetAspEnvironmentWithJson()
{
////S Drop a hosting.json with Hosting:Environment information.
// Logger.LogInformation("Creating hosting.json file with Hosting:Environment.");
////S Drop a hosting.json with environment information.
// Logger.LogInformation("Creating hosting.json file with environment information.");
// 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
Expand Down