forked from microsoft/sample-app-aoai-chatGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.cmd
40 lines (36 loc) · 771 Bytes
/
start.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
36
37
38
39
40
@echo off
echo.
echo Restoring backend python packages
echo.
call python -m pip install -r requirements.txt
if "%errorlevel%" neq "0" (
echo Failed to restore backend python packages
exit /B %errorlevel%
)
echo.
echo Restoring frontend npm packages
echo.
cd frontend
call npm install
if "%errorlevel%" neq "0" (
echo Failed to restore frontend npm packages
exit /B %errorlevel%
)
echo.
echo Building frontend
echo.
call npm run build
if "%errorlevel%" neq "0" (
echo Failed to build frontend
exit /B %errorlevel%
)
echo.
echo Starting backend
echo.
cd ..
start http://127.0.0.1:50505
call uvicorn app:app --port 50505 --reload
if "%errorlevel%" neq "0" (
echo Failed to start backend
exit /B %errorlevel%
)