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