From 6fb41c4ecd66c5d033365c5ba4963c2d60a3a48c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=86=9B?= <510423039@qq.com> Date: Wed, 14 Sep 2022 00:12:05 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=95=E8=B0=83=E6=95=B4CI=E5=8F=91?= =?UTF-8?q?=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Lion.AbpPro.HttpApi.Host.csproj | 10 ++++++++++ .../appsettings.Production.json | 2 +- .../Lion.AbpPro.DbMigrator/DbMigratorHostedService.cs | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Lion.AbpPro.HttpApi.Host.csproj b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Lion.AbpPro.HttpApi.Host.csproj index 9819d3ec..9ffabf80 100644 --- a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Lion.AbpPro.HttpApi.Host.csproj +++ b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/Lion.AbpPro.HttpApi.Host.csproj @@ -57,6 +57,16 @@ + + true + Always + PreserveNewest + + + Always + true + PreserveNewest + diff --git a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/appsettings.Production.json b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/appsettings.Production.json index 418ace5e..0a572bf1 100644 --- a/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/appsettings.Production.json +++ b/aspnet-core/services/host/Lion.AbpPro.HttpApi.Host/appsettings.Production.json @@ -31,7 +31,7 @@ }, "App": { "SelfUrl": "http://localhost:44315", - "CorsOrigins": "http://localhost:80,http://116.205.176.173:80" + "CorsOrigins": "http://localhost:80,http://116.205.176.173:80,http://116.205.176.173" }, "ConnectionStrings": { "Default": "Data Source=mysql;Port=3306;Database=LionAbpProDB;uid=root;pwd=1q2w3E*;charset=utf8mb4;Allow User Variables=true;AllowLoadLocalInfile=true" diff --git a/aspnet-core/services/src/Lion.AbpPro.DbMigrator/DbMigratorHostedService.cs b/aspnet-core/services/src/Lion.AbpPro.DbMigrator/DbMigratorHostedService.cs index ea2e6345..e577562a 100644 --- a/aspnet-core/services/src/Lion.AbpPro.DbMigrator/DbMigratorHostedService.cs +++ b/aspnet-core/services/src/Lion.AbpPro.DbMigrator/DbMigratorHostedService.cs @@ -22,6 +22,7 @@ namespace Lion.AbpPro.DbMigrator { await application.InitializeAsync(); var conn = _configuration.GetValue("ConnectionStrings:Default"); + Console.WriteLine(conn); await application .ServiceProvider .GetRequiredService()