windows linux 环境路径修改 迁移
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-12-08 12:44:35 +08:00
parent 4673034737
commit f4fc3dfab9
@@ -56,8 +56,9 @@ public static class FileStoreHelper
//API vue 部署目录
public static string GetIRaCISRootPath(IWebHostEnvironment _hostEnvironment)
{
var rootPath = (Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\'))).IfNullThrowException().FullName;
return rootPath;
string parentDirectory = Path.GetFullPath(Path.Combine(_hostEnvironment.ContentRootPath, ".."));
return parentDirectory;
}