mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-15 19:04:45 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user