From ff76c63b64fd64c77b1fe0e99d55512bba84e78a Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 11 Aug 2020 09:24:13 +0800 Subject: [PATCH] 1.0.0.0811d1 Former-commit-id: 307c8b71dff8a0193bd4d7f612da916db2f05387 Former-commit-id: 8fd0ebc9468790b396e1b60b71ead6a0f8d8df3b --- projects/Infrastructure/Infrastructure.csproj | 1 - projects/Infrastructure/Web/BaseStartup.cs | 2 +- projects/Version.cs | 2 +- publish/src/linux-x64/publish/docker-compose.prod.yml | 5 ----- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/projects/Infrastructure/Infrastructure.csproj b/projects/Infrastructure/Infrastructure.csproj index 350e921e..d9328188 100644 --- a/projects/Infrastructure/Infrastructure.csproj +++ b/projects/Infrastructure/Infrastructure.csproj @@ -3,7 +3,6 @@ netcoreapp3.1 true - true true false false diff --git a/projects/Infrastructure/Web/BaseStartup.cs b/projects/Infrastructure/Web/BaseStartup.cs index 4cf0a4d9..e5e01f91 100644 --- a/projects/Infrastructure/Web/BaseStartup.cs +++ b/projects/Infrastructure/Web/BaseStartup.cs @@ -92,7 +92,7 @@ namespace Infrastructure.Web } else if (dbConnectionName == "mysql") { - services.AddDbContext(options => options.UseMySql(_connectionString)); + services.AddDbContext(options => options.UseMySql(_connectionString, o => o.EnableRetryOnFailure())); } else { diff --git a/projects/Version.cs b/projects/Version.cs index 01912880..cd57cb9a 100644 --- a/projects/Version.cs +++ b/projects/Version.cs @@ -1,4 +1,4 @@ using System.Reflection; [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyInformationalVersion("1.0.0.0810d4")] \ No newline at end of file +[assembly: AssemblyInformationalVersion("1.0.0.0811d1")] \ No newline at end of file diff --git a/publish/src/linux-x64/publish/docker-compose.prod.yml b/publish/src/linux-x64/publish/docker-compose.prod.yml index bbbebd2a..4cd14062 100644 --- a/publish/src/linux-x64/publish/docker-compose.prod.yml +++ b/publish/src/linux-x64/publish/docker-compose.prod.yml @@ -53,8 +53,3 @@ services: networks: default: ipv4_address: 172.172.0.90 - gateway: - depends_on: - - usercenter - - iotcenter - - jobserver