Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Web: Make sure that pm2 is found in cleanup method

Kilian Lieret7c37de2989e9
diff --git a/start_web_ui.sh b/start_web_ui.sh
index fafe587e..eeee8071 100755
--- a/start_web_ui.sh
+++ b/start_web_ui.sh
@@ -2,8 +2,10 @@
set -euo pipefail
+this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+
function stop_react {
- npx pm2 delete swe-agent
+ npx --prefix "${this_dir}/sweagent/frontend" pm2 delete swe-agent
}
cd sweagent/frontend