You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
683 B
33 lines
683 B
@echo off
|
|
cls
|
|
chcp 65001
|
|
|
|
title internal-apigateway
|
|
|
|
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 '--watchrun' goto watchrun
|
|
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
|
|
|
|
:watchrun
|
|
dotnet watch run --no-restore
|
|
exit
|
|
|
|
:restore
|
|
dotnet restore
|
|
exit
|