增加1s延时测试热更新
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
a96945201f
commit
93410b4075
|
|
@ -73,6 +73,8 @@ public class DeployConfigService(IMapper _mapper, IDistributedLockProvider _dist
|
||||||
// 重新写入appsettings.json
|
// 重新写入appsettings.json
|
||||||
string result = obj.ToString();
|
string result = obj.ToString();
|
||||||
System.IO.File.WriteAllText(path, result);
|
System.IO.File.WriteAllText(path, result);
|
||||||
|
|
||||||
|
await Task.Delay(1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -139,6 +141,8 @@ public class DeployConfigService(IMapper _mapper, IDistributedLockProvider _dist
|
||||||
string result = obj.ToString();
|
string result = obj.ToString();
|
||||||
System.IO.File.WriteAllText(path, result);
|
System.IO.File.WriteAllText(path, result);
|
||||||
|
|
||||||
|
await Task.Delay(1000);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ResponseOutput.Ok();
|
return ResponseOutput.Ok();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue