deerflow2/scripts
Orion a0c38a5cf3
feat: add dev-daemon target for background development mode (#1047)
* feat: add dev-daemon target for background development mode

Add a new make dev-daemon target that allows running DeerFlow services
in background mode without keeping the terminal connection.

Following the pattern of PR #1042, the implementation uses a dedicated
shell script (scripts/start-daemon.sh) for better maintainability.

- Create scripts/start-daemon.sh for daemon mode startup
- Add dev-daemon target to Makefile
- Each service writes logs to separate files (langgraph, gateway, frontend, nginx)
- Services can be stopped with make stop
- Use nohup for proper daemon process detachment
- Add cleanup on failure when services fail to start
- Use more specific pkill pattern to avoid killing unrelated nginx processes

* refactor: use wait-for-port.sh instead of hardcoded sleep in daemon script

* refactor: use specific nginx process pattern to avoid killing unrelated processes

* Revert "refactor: use specific nginx process pattern to avoid killing unrelated processes"

This reverts commit 4c369155bfc91ccce347876a8982f955fa039da8.

* refactor: use consistent nginx kill pattern across all scripts

* chore(daemon): add trap for cleanup on interrupt signals

* fix(daemon): pass repo root as positional argument to nginx command

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-03-11 15:10:40 +08:00
..
check.sh feat: add `make start` command for local previewing (#1078) 2026-03-11 13:46:05 +08:00
cleanup-containers.sh feat: send custom event 2026-02-06 17:48:15 +08:00
docker.sh chore(docker): Refactor sandbox state management and improve Docker integration (#1068) 2026-03-11 10:03:01 +08:00
serve.sh feat: add `make start` command for local previewing (#1078) 2026-03-11 13:46:05 +08:00
start-daemon.sh feat: add dev-daemon target for background development mode (#1047) 2026-03-11 15:10:40 +08:00
wait-for-port.sh fix: improve port detection in WSL (#1061) 2026-03-10 18:52:25 +08:00