From 701e0e8e919d2929ecc98b555e468bd29bf606cf Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sat, 14 Feb 2026 15:44:02 -0800 Subject: Cleanup root directory by moving scripts to scripts/ and fix CSRF cookie policy for dev env --- scripts/clean_test_env.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 scripts/clean_test_env.sh (limited to 'scripts/clean_test_env.sh') diff --git a/scripts/clean_test_env.sh b/scripts/clean_test_env.sh new file mode 100755 index 0000000..6edef41 --- /dev/null +++ b/scripts/clean_test_env.sh @@ -0,0 +1,20 @@ +#!/bin/bash +echo "Cleaning up test environment..." + +# Kill neko backend binary if running +pkill -x "neko" || true +pkill -x "neko_server" || true + +# Kill specific node processes related to vite/playwright +# We avoid pkill -f node to not kill the agent connection +pkill -f "vite" || true +pkill -f "playwright" || true + +# Kill anything on ports 4994 and 5173 +fuser -k 4994/tcp || true +fuser -k 5173/tcp || true + +# Remove test databases +rm -f neko_test.db .data/test.db + +echo "Cleanup complete." -- cgit v1.2.3