mirror of
https://git.mirrors.martin98.com/https://github.com/bytedance/deer-flow
synced 2025-10-03 18:36:33 +08:00
Allow concurrently run server.py and web in production mode. (#25)
* Allow concurrently run server.py and web in production mode. * Allow concurrently run server.py and web in production mode. * Allow concurrently run server.py and web in production mode.
This commit is contained in:
parent
f7d79b6d83
commit
ffe706d0df
@ -10,9 +10,10 @@ IF "%MODE%"=="development" GOTO DEV
|
||||
|
||||
:PROD
|
||||
echo Starting DeerFlow in [PRODUCTION] mode...
|
||||
uv run server.py
|
||||
start uv run server.py
|
||||
cd web
|
||||
pnpm start
|
||||
start pnpm start
|
||||
REM Wait for user to close
|
||||
GOTO END
|
||||
|
||||
:DEV
|
||||
|
@ -11,6 +11,8 @@ if [ "$1" = "--dev" -o "$1" = "-d" -o "$1" = "dev" -o "$1" = "development" ]; th
|
||||
wait
|
||||
else
|
||||
echo -e "Starting DeerFlow in [PRODUCTION] mode...\n"
|
||||
uv run server.py
|
||||
cd web && pnpm start
|
||||
uv run server.py & SERVER_PID=$$!
|
||||
cd web && pnpm start & WEB_PID=$$!
|
||||
trap "kill $$SERVER_PID $$WEB_PID" SIGINT SIGTERM
|
||||
wait
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user