diff --git a/PublishSite/PublishForm.cs b/PublishSite/PublishForm.cs index e298ef44..c404afc4 100644 --- a/PublishSite/PublishForm.cs +++ b/PublishSite/PublishForm.cs @@ -326,7 +326,7 @@ namespace PublishSite if (stopServiceCommand.ExitStatus != 0) { - throw new Exception($"Failed to stop {serviceName}."); + WinformLog($"Failed to stop {serviceName}.",Color.Red); } Task.Delay(1000); @@ -338,7 +338,7 @@ namespace PublishSite compressCommand.Execute(); if (compressCommand.ExitStatus != 0) { - throw new Exception("Failed to compress and move folder contents."); + WinformLog("Failed to compress and move folder contents.", Color.Red); } //启动服务 @@ -349,7 +349,7 @@ namespace PublishSite if (startServiceCommand.ExitStatus != 0) { - throw new Exception($"Failed to start {serviceName}."); + WinformLog($"Failed to start {serviceName}.", Color.Red); } diff --git a/PublishSite/appsettings.Verify.json b/PublishSite/appsettings.Verify.json index d898247d..f4f45acd 100644 --- a/PublishSite/appsettings.Verify.json +++ b/PublishSite/appsettings.Verify.json @@ -1,10 +1,10 @@ { "BackUp": { - "DataBaseName": "IRaCIS_New_Tet", + "DataBaseName": "IRaCIS_Verify", "DBUser": "sa", "DBPwd": "dev123456DEV", - "BackPath": "D:\\Develop\\PublishSite\\发布备份", - "ConnectionStrings": "Server=.;Database=IRaCIS;Trusted_Connection=True;TrustServerCertificate=true" + "BackPath": "D:\\Develop\\Verify_PublishSite\\发布备份", + "ConnectionStrings": "Server=.;Database=IRaCIS_Verify;Trusted_Connection=True;TrustServerCertificate=true" }, "Credential": { "Host": "123.56.94.154", @@ -12,10 +12,10 @@ "Password": "WHxckj2019" }, "DefaultService": { - "ServiceName": "NetCore.IRaCIS.Api", - "ServiceDisplayName": "CICD_IRaCIS.Core.API", - "ServicePort": "7100", - "BinPath": "D:\\Develop\\PublishSite\\IRaCIS.NetCore.API\\IRaCIS.Core.API.exe", - "Env": "Development" + "ServiceName": "Verify.NetCore.IRaCIS.Api", + "ServiceDisplayName": "Verify_IRaCIS.Core.API", + "ServicePort": "7020", + "BinPath": "D:\\Develop\\Verify_PublishSite\\IRaCIS.NetCore.API\\IRaCIS.Core.API.exe", + "Env": "Staging" } }