mirror of
https://git.mirrors.martin98.com/https://github.com/bytedance/deer-flow
synced 2025-08-20 12:39:15 +08:00
chore: add bootstrap.sh
This commit is contained in:
parent
e649de5c4e
commit
e7653f1c1e
19
bootstrap.sh
Executable file
19
bootstrap.sh
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
# traptest.sh
|
||||
|
||||
# Start both of DeerFlow's backend and web UI server.
|
||||
# If the user presses Ctrl+C, kill them both.
|
||||
|
||||
if [ "$1" = "--dev" -o "$1" = "-d" -o "$1" = "dev" ]; then
|
||||
echo "Starting DeerFlow in [DEVELOPMENT] mode..."
|
||||
echo
|
||||
uv run server.py --reload & SERVER_PID=$$!
|
||||
cd web && pnpm dev & WEB_PID=$$!
|
||||
trap "kill $$SERVER_PID $$WEB_PID" SIGINT SIGTERM
|
||||
wait
|
||||
else
|
||||
echo "Starting DeerFlow in [PRODUCTION] mode..."
|
||||
echo
|
||||
uv run server.py
|
||||
cd web && pnpm start
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user