-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
26 lines (20 loc) · 709 Bytes
/
run.bat
File metadata and controls
26 lines (20 loc) · 709 Bytes
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
@echo off
set ENV_FOR_DYNACONF=development
set REACT_APP_API_ENDPOINT=http://localhost:8000
if "%1"=="server" goto server
if "%1"=="frontend" goto frontend
goto both
:server
echo Running Server...
start cmd /C "cd C:\Users\jpeng\Documents\business\kongyiji\kongserver\KongServer && python app.py"
goto end
:frontend
echo Running Frontend...
start cmd /C "cd C:\Users\jpeng\Documents\business\kongyiji\kongserver\KongUI && npm run start"
goto end
:both
echo Running both Server and Frontend...
start cmd /C "cd C:\Users\jpeng\Documents\business\kongyiji\kongserver\KongServer && python app.py"
start cmd /C "cd C:\Users\jpeng\Documents\business\kongyiji\kongserver\KongUI && npm run start"
goto end
:end