Browse Source

添加迁移数据库的bat文件,已测试

修改启用所有服务的bat文件,中间增加时间间隔,提升启动速度
修改bat文件增加标题及生成时的项目提示,方便查看
增加缺少的本地化文字
修改single项目的连接字符串
pull/861/head
李宏 2 years ago
parent
commit
e695c6452a
  1. 19
      aspnet-core/migrate-database.bat
  2. 28
      aspnet-core/migrate-db-cmd.bat
  3. 1
      aspnet-core/modules/platform/LINGYUN.Platform.Domain.Shared/LINGYUN/Platform/Localization/Resources/zh-Hans.json
  4. 15
      aspnet-core/start-all-service.bat
  5. 3
      aspnet-core/start-http-api-host.bat
  6. 18
      gateways/web/LY.MicroService.ApiGateway/appsettings.Development.json

19
aspnet-core/migrate-database.bat

@ -0,0 +1,19 @@
@echo off
cls
set stime=8
start .\migrate-db-cmd.bat LY.MicroService.BackendAdmin.DbMigrator admin --run
ping -n %stime% 127.1 >nul
start .\migrate-db-cmd.bat LY.MicroService.AuthServer.DbMigrator auth-server --run
ping -n %stime% 127.1 >nul
start .\migrate-db-cmd.bat LY.MicroService.IdentityServer.DbMigrator identityserver4-admin --run
ping -n %stime% 127.1 >nul
start .\migrate-db-cmd.bat LY.MicroService.LocalizationManagement.DbMigrator localization --run
ping -n %stime% 127.1 >nul
start .\migrate-db-cmd.bat LY.MicroService.Platform.DbMigrator platform --run
ping -n %stime% 127.1 >nul
start .\migrate-db-cmd.bat LY.MicroService.RealtimeMessage.DbMigrator messages --run
ping -n %stime% 127.1 >nul
start .\migrate-db-cmd.bat LY.MicroService.TaskManagement.DbMigrator task-management --run
ping -n %stime% 127.1 >nul
start .\migrate-db-cmd.bat LY.MicroService.WebhooksManagement.DbMigrator webhooks-management --run

28
aspnet-core/migrate-db-cmd.bat

@ -0,0 +1,28 @@
@echo off
cls
chcp 65001
title %2
@echo %2 migration running
cd .\migrations\%1
if '%3' equ '--run' goto run
if '%3' equ '--restore' goto restore
if '%3' equ '--ef-u' goto efu
if '%3' equ '' goto run
exit
:run
dotnet run
pause
exit
:restore
dotnet restore
exit
:efu
dotnet ef databse update
exit

1
aspnet-core/modules/platform/LINGYUN.Platform.Domain.Shared/LINGYUN/Platform/Localization/Resources/zh-Hans.json

@ -21,6 +21,7 @@
"DisplayName:Code": "编号", "DisplayName:Code": "编号",
"DisplayName:IsPublic": "是否公用的", "DisplayName:IsPublic": "是否公用的",
"DisplayName:DisplayName": "显示名称", "DisplayName:DisplayName": "显示名称",
"DisplayName:UIFramework": "UI框架",
"DisplayName:Description": "说明", "DisplayName:Description": "说明",
"DisplayName:AllowBeNull": "允许空值", "DisplayName:AllowBeNull": "允许空值",
"DisplayName:DefaultValue": "默认值", "DisplayName:DefaultValue": "默认值",

15
aspnet-core/start-all-service.bat

@ -1,12 +1,25 @@
@echo off @echo off
cls cls
set stime=8
start .\start-http-api-host.bat LY.MicroService.IdentityServer identityserver --run start .\start-http-api-host.bat LY.MicroService.IdentityServer identityserver --run
ping -n %stime% 127.1 >nul
start .\start-http-api-host.bat LY.MicroService.IdentityServer.HttpApi.Host identityserver4-admin --run start .\start-http-api-host.bat LY.MicroService.IdentityServer.HttpApi.Host identityserver4-admin --run
ping -n %stime% 127.1 >nul
start .\start-http-api-host.bat LY.MicroService.LocalizationManagement.HttpApi.Host localization --run start .\start-http-api-host.bat LY.MicroService.LocalizationManagement.HttpApi.Host localization --run
ping -n %stime% 127.1 >nul
start .\start-http-api-host.bat LY.MicroService.PlatformManagement.HttpApi.Host platform --run start .\start-http-api-host.bat LY.MicroService.PlatformManagement.HttpApi.Host platform --run
ping -n %stime% 127.1 >nul
start .\start-http-api-host.bat LY.MicroService.RealtimeMessage.HttpApi.Host messages --run start .\start-http-api-host.bat LY.MicroService.RealtimeMessage.HttpApi.Host messages --run
ping -n %stime% 127.1 >nul
start .\start-http-api-host.bat LY.MicroService.TaskManagement.HttpApi.Host task-management --run start .\start-http-api-host.bat LY.MicroService.TaskManagement.HttpApi.Host task-management --run
ping -n %stime% 127.1 >nul
start .\start-http-api-host.bat LY.MicroService.WebhooksManagement.HttpApi.Host webhooks-management--run
ping -n %stime% 127.1 >nul
start .\start-http-api-host.bat LY.MicroService.RealtimeMessage.HttpApi.Host realtime-message --run
ping -n %stime% 127.1 >nul
start .\start-http-api-host.bat LY.MicroService.WorkflowManagement.HttpApi.Host workflow-management --run
ping -n %stime% 127.1 >nul
start .\start-http-api-host.bat LY.MicroService.BackendAdmin.HttpApi.Host admin --run start .\start-http-api-host.bat LY.MicroService.BackendAdmin.HttpApi.Host admin --run
ping -n 10 127.1 >nul ping -n %stime% 127.1 >nul
start .\start-internal-gateway.bat --run start .\start-internal-gateway.bat --run

3
aspnet-core/start-http-api-host.bat

@ -2,6 +2,9 @@
cls cls
chcp 65001 chcp 65001
title %2-host
@echo %2-host
cd .\services\%1 cd .\services\%1
if '%3' equ '--publish' goto publish if '%3' equ '--publish' goto publish

18
gateways/web/LY.MicroService.ApiGateway/appsettings.Development.json

@ -11,15 +11,15 @@
"CorsOrigins": "http://127.0.0.1:3100" "CorsOrigins": "http://127.0.0.1:3100"
}, },
"ConnectionStrings": { "ConnectionStrings": {
"Default": "Server=127.0.0.1;Database=Platform;User Id=root;Password=123456", "Default": "Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456",
"AbpIdentity": "Server=127.0.0.1;Database=IdentityServer;User Id=root;Password=123456", "AbpIdentity": "Server=127.0.0.1;Database=IdentityServer-v70;User Id=root;Password=123456",
"AbpIdentityServer": "Server=127.0.0.1;Database=IdentityServer;User Id=root;Password=123456", "AbpIdentityServer": "Server=127.0.0.1;Database=IdentityServer-v70;User Id=root;Password=123456",
"AbpSaas": "Server=127.0.0.1;Database=Platform;User Id=root;Password=123456", "AbpSaas": "Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456",
"AbpSettingManagement": "Server=127.0.0.1;Database=Platform;User Id=root;Password=123456", "AbpSettingManagement": "Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456",
"AbpFeatureManagement": "Server=127.0.0.1;Database=Platform;User Id=root;Password=123456", "AbpFeatureManagement": "Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456",
"AbpPermissionManagement": "Server=127.0.0.1;Database=Platform;User Id=root;Password=123456", "AbpPermissionManagement": "Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456",
"AbpLocalizationManagement": "Server=127.0.0.1;Database=Platform;User Id=root;Password=123456", "AbpLocalizationManagement": "Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456",
"AbpTextTemplating": "Server=127.0.0.1;Database=Platform;User Id=root;Password=123456" "AbpTextTemplating": "Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456"
}, },
"AuthServer": { "AuthServer": {
"Authority": "http://127.0.0.1:44385/", "Authority": "http://127.0.0.1:44385/",

Loading…
Cancel
Save