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

IRC_NewDev
hang 2023-12-08 12:44:35 +08:00
parent 4673034737
commit f4fc3dfab9
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}