From bc124560f754155f850abfc3ffcd1bd4b3c79213 Mon Sep 17 00:00:00 2001 From: Sourabh Shirhatti Date: Wed, 6 Apr 2016 11:49:53 -0700 Subject: [PATCH] Hosting__Environment on *nix --- aspnet/fundamentals/environments.rst | 2 +- aspnet/publishing/linuxproduction.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnet/fundamentals/environments.rst b/aspnet/fundamentals/environments.rst index 18f27280a2..cde2288239 100644 --- a/aspnet/fundamentals/environments.rst +++ b/aspnet/fundamentals/environments.rst @@ -15,7 +15,7 @@ In this article: Development, Staging, Production -------------------------------- -ASP.NET 5 references a particular `environment variable `_, ``Hosting:Environment``, to describe the environment the application is currently running in. This variable can be set to any value you like, but three values are used by convention: ``Development``, ``Staging``, and ``Production``. You will find these values used in the samples and templates provided with ASP.NET 5. +ASP.NET 5 references a particular `environment variable `_, ``Hosting:Environment`` (or ``Hosting__Environment`` on \*nix systems), to describe the environment the application is currently running in. This variable can be set to any value you like, but three values are used by convention: ``Development``, ``Staging``, and ``Production``. You will find these values used in the samples and templates provided with ASP.NET 5. The current environment setting can be detected programmatically from within your application. In addition, you can use the Environment :doc:`Tag Helper ` to include certain sections in your :doc:`view ` based on the current application environment. diff --git a/aspnet/publishing/linuxproduction.rst b/aspnet/publishing/linuxproduction.rst index fb6ebd71be..ab7d68ed37 100644 --- a/aspnet/publishing/linuxproduction.rst +++ b/aspnet/publishing/linuxproduction.rst @@ -140,7 +140,7 @@ To have supervisor monitor our application, we will add a file to the ``/etc/sup autorestart=true stderr_logfile=/var/log/hellomvc.err.log stdout_logfile=/var/log/hellomvc.out.log - environment=Hosting:Environment=Production + environment=Hosting__Environment=Production user=www-data stopsignal=INT