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