Hosting__Environment on *nix

pull/1135/head
Sourabh Shirhatti 2016-04-06 11:49:53 -07:00
parent 3e5d5f8172
commit bc124560f7
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ In this article:
Development, Staging, Production Development, Staging, Production
-------------------------------- --------------------------------
ASP.NET 5 references a particular `environment variable <https://github.com/aspnet/Home/wiki/Environment-Variables>`_, ``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 <https://github.com/aspnet/Home/wiki/Environment-Variables>`_, ``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 </mvc/views/tag-helpers/index>` to include certain sections in your :doc:`view </mvc/views/index>` based on the current application environment. The current environment setting can be detected programmatically from within your application. In addition, you can use the Environment :doc:`Tag Helper </mvc/views/tag-helpers/index>` to include certain sections in your :doc:`view </mvc/views/index>` based on the current application environment.

View File

@ -140,7 +140,7 @@ To have supervisor monitor our application, we will add a file to the ``/etc/sup
autorestart=true autorestart=true
stderr_logfile=/var/log/hellomvc.err.log stderr_logfile=/var/log/hellomvc.err.log
stdout_logfile=/var/log/hellomvc.out.log stdout_logfile=/var/log/hellomvc.out.log
environment=Hosting:Environment=Production environment=Hosting__Environment=Production
user=www-data user=www-data
stopsignal=INT stopsignal=INT