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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.