|
@@ -117,15 +117,14 @@ namespace MySystem
|
|
{
|
|
{
|
|
app.UseDeveloperExceptionPage();
|
|
app.UseDeveloperExceptionPage();
|
|
// app.UseExceptionHandler("/Home/Error");
|
|
// app.UseExceptionHandler("/Home/Error");
|
|
- // Library.ConfigurationManager.EnvironmentFlag = 1;
|
|
|
|
|
|
+ Library.ConfigurationManager.EnvironmentFlag = 1;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
app.UseExceptionHandler("/Home/Error");
|
|
app.UseExceptionHandler("/Home/Error");
|
|
app.UseHsts();
|
|
app.UseHsts();
|
|
- // Library.ConfigurationManager.EnvironmentFlag = 2;
|
|
|
|
- }
|
|
|
|
Library.ConfigurationManager.EnvironmentFlag = 2;
|
|
Library.ConfigurationManager.EnvironmentFlag = 2;
|
|
|
|
+ }
|
|
Library.function.WritePage("/", "WebRootPath.txt", env.WebRootPath);
|
|
Library.function.WritePage("/", "WebRootPath.txt", env.WebRootPath);
|
|
// app.UseStatusCodePagesWithReExecute("/public/errpage/pc/{0}.html");
|
|
// app.UseStatusCodePagesWithReExecute("/public/errpage/pc/{0}.html");
|
|
|
|
|