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.
28 lines
442 B
28 lines
442 B
@echo off
|
|
cls
|
|
chcp 65001
|
|
|
|
echo. 启动API网关
|
|
|
|
cd .\apigateway\LINGYUN.ApiGateway.Host
|
|
|
|
if '%1' equ '--publish' goto publish
|
|
if '%1' equ '--run' goto run
|
|
if '%1' equ '--restore' goto restore
|
|
if '%1' equ '' goto run
|
|
|
|
:publish
|
|
dotnet publish -c Release -o ..\..\Publish\apigateway-host --no-cache --no-restore
|
|
copy Dockerfile ..\..\Publish\apigateway-host\Dockerfile
|
|
pause
|
|
exit
|
|
|
|
:run
|
|
dotnet run
|
|
pause
|
|
exit
|
|
|
|
:restore
|
|
dotnet restore
|
|
pause
|
|
exit
|