Added file path references.
This commit is contained in:
parent
de55203a12
commit
ecb0873f7f
26
Program.cs
26
Program.cs
@ -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:\\";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user