Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello, anyone know if Umbraco have an helper (or other), that will be possible know the environment type? "Local", "Development", "Live"...
Thanks
Sorry i see that i used IHostEnvironement for that:
IHostEnvironment hostEnv; string envName = hostEnv.EnvironmentName;
This show: "Staging", "Development", "Production".
For it local or development are the same and show "Development" in both case. But i need to know, when run on "Local", or "Development" or "Production" enviroment.
Thanks.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Environment Type
Hello, anyone know if Umbraco have an helper (or other), that will be possible know the environment type? "Local", "Development", "Live"...
Thanks
Sorry i see that i used IHostEnvironement for that:
This show: "Staging", "Development", "Production".
For it local or development are the same and show "Development" in both case. But i need to know, when run on "Local", or "Development" or "Production" enviroment.
Thanks.
is working on a reply...