Added file path references.

This commit is contained in:
james262 2023-11-09 14:29:28 -05:00
parent de55203a12
commit ecb0873f7f

View File

@ -38,8 +38,19 @@ if (!app.Environment.IsDevelopment()) {
}
VSERVERWS.Global.Globals.IsDevelopment = app.Environment.IsDevelopment();
var env = builder.Environment;
//X:\CVRCO\C#\VSERVERWS\VSERVERWS\wwwroot
AppPath = env.WebRootPath;
//X:\CVRCO\C#\VSERVERWS\VSERVERWS\
HTTPROOT = env.ContentRootPath;
VSERVERWS.Global.Globals.IsDevelopment = app.Environment.IsDevelopment();
//VSERVERWS.Global.Globals.IsDevelopment = false;
VSERVERWS.Global.Globals.LoadPrinters();
@ -79,4 +90,17 @@ public partial class Program {
public static string HTTPROOT { get; set; } = "";
public static bool IsDevMode { get; set; } = false;
public static string XDRIVE {
get {
if (Directory.Exists("X:\\Shares\\cvrdata")) {
return "X:\\Shares\\cvrdata";
} else {
return "X:\\";
}
}
}
}