diff --git a/aspnet-core/cleanup-logs.bat b/aspnet-core/cleanup-logs.bat index 21d9a2647..ef5471574 100644 --- a/aspnet-core/cleanup-logs.bat +++ b/aspnet-core/cleanup-logs.bat @@ -10,4 +10,6 @@ del .\services\LY.MicroService.identityServer.HttpApi.Host\Logs /Q del .\services\LY.MicroService.LocalizationManagement.HttpApi.Host\Logs /Q del .\services\LY.MicroService.PlatformManagement.HttpApi.Host\Logs /Q del .\services\LY.MicroService.RealtimeMessage.HttpApi.Host\Logs /Q +del .\services\LY.MicroService.TaskManagement.HttpApi.Host\Logs /Q +del .\services\LY.MicroService.WorkflowManagement.HttpApi.Host\Logs /Q diff --git a/aspnet-core/start-all-service.bat b/aspnet-core/start-all-service.bat new file mode 100644 index 000000000..3fb1a6c24 --- /dev/null +++ b/aspnet-core/start-all-service.bat @@ -0,0 +1,12 @@ +@echo off +cls + +start .\start-http-api-host.bat LY.MicroService.IdentityServer identityserver --run +start .\start-http-api-host.bat LY.MicroService.IdentityServer.HttpApi.Host identityserver4-admin --run +start .\start-http-api-host.bat LY.MicroService.LocalizationManagement.HttpApi.Host localization --run +start .\start-http-api-host.bat LY.MicroService.PlatformManagement.HttpApi.Host platform --run +start .\start-http-api-host.bat LY.MicroService.RealtimeMessage.HttpApi.Host messages --run +start .\start-http-api-host.bat LY.MicroService.TaskManagement.HttpApi.Host task-management --run +start .\start-http-api-host.bat LY.MicroService.BackendAdmin.HttpApi.Host admin --run +ping -n 10 127.1 >nul +start .\start-internal-gateway.bat --run \ No newline at end of file diff --git a/aspnet-core/start-http-api-host.bat b/aspnet-core/start-http-api-host.bat new file mode 100644 index 000000000..cf24de8fd --- /dev/null +++ b/aspnet-core/start-http-api-host.bat @@ -0,0 +1,29 @@ +@echo off +cls +chcp 65001 + +cd .\services\%1 + +if '%3' equ '--publish' goto publish +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 + +:publish +dotnet publish -c Release -o .\services\Publish\%2 --no-cache --no-restore +copy Dockerfile .\services\Publish\%2\Dockerfile +exit + +:run +dotnet run +exit + +:restore +dotnet restore +exit + +:efu +dotnet ef databse update +exit \ No newline at end of file diff --git a/aspnet-core/start-internal-gateway.bat b/aspnet-core/start-internal-gateway.bat new file mode 100644 index 000000000..ceb09fc87 --- /dev/null +++ b/aspnet-core/start-internal-gateway.bat @@ -0,0 +1,26 @@ +@echo off +cls +chcp 65001 + +echo. 启动内部网关 + +cd ..\gateways\internal\LINGYUN.MicroService.Internal.ApiGateway\src\LINGYUN.MicroService.Internal.ApiGateway\ + +if '%1' equ '--publish' goto publish +if '%1' equ '--run' goto run +if '%1' equ '--restore' goto restore +if '%1' equ '' goto run +exit + +:publish +dotnet publish -c Release -o ..\..\..\..\..\aspnet-core\services\Publish\internal-apigateway --no-cache --no-restore +copy Dockerfile ..\..\..\..\..\aspnet-core\services\Publish\internal-apigateway\Dockerfile +exit + +:run +dotnet run +exit + +:restore +dotnet restore +exit \ No newline at end of file