Browse Source

Merge pull request #503 from colinin/quick-batch-script

feat(quick-script): added quick start batch scripts.
pull/533/head
yx lin 4 years ago
committed by GitHub
parent
commit
89afff39a0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      aspnet-core/cleanup-logs.bat
  2. 12
      aspnet-core/start-all-service.bat
  3. 29
      aspnet-core/start-http-api-host.bat
  4. 26
      aspnet-core/start-internal-gateway.bat

2
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

12
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

29
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

26
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
Loading…
Cancel
Save