-
Notifications
You must be signed in to change notification settings - Fork 22
/
TeamCloud.cmd
35 lines (26 loc) · 1.03 KB
/
TeamCloud.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
cls
cd "%~dp0"
set "lock=%temp%\wait%random%.lock"
echo ______ ________ __
echo /_ __/__ ____ _____ ___ / ____/ /___ __ ______/ /
echo / / / _ \/ __ `/ __ `__ \/ / / / __ \/ / / / __ /
echo / / / __/ /_/ / / / / / / /___/ / /_/ / /_/ / /_/ /
echo /_/ \___/\__,_/_/ /_/ /_/\____/_/\____/\__,_/\__,_/
echo.
echo - Starting Azure Storage Emulator
start "" cmd /C azurestorageemulator start
echo - Building API and Orchestrator
start /min /D .\src "" 9>"%lock%1" dotnet build --force -c Debug
echo - Building Web UI
start /min /D .\web "" 9>"%lock%2" cmd /C npm install
:Wait
1>nul 2>nul ping /n 2 ::1
for %%N in (1 2) do (
(call ) 9>"%lock%%%N" || goto :Wait
) 2>nul
del "%lock%*"
SET terminal=wt -d .\web cmd /C "npm start" ;
SET terminal=%terminal% split-pane -V -d .\src\TeamCloud.API cmd /C "dotnet run --no-build" ;
SET terminal=%terminal% split-pane -H -d .\src\TeamCloud.Orchestrator cmd /C "func host start --no-build --script-root bin/Debug/net6.0"
start "" /B %terminal%