From 099a26fa3066a89f65f177e5b50660847105de9d Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Wed, 7 Oct 2020 14:39:42 -0400 Subject: [PATCH] Add commands to kill dev tools after loss of control --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index db88807..d61e8a1 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,8 @@ "start:docs": "npx styleguidist server --open --config styleguidist/styleguide.config.js", "build:frontend": "react-scripts build", "build:docs": "npx styleguidist build --config styleguidist/styleguide.config.js", + "kill:frontend": "pgrep -u $(whoami) -f 'react-scripts/scripts/start.js' -d ' ' | xargs kill -9", + "kill:api": "pgrep -u $(whoami) -f gunicorn -d ' ' | xargs kill -9", "venv:create": "python3 utils/venv-manager.py create", "venv:delete": "python3 utils/venv-manager.py delete", "venv:reset": "python3 utils/venv-manager.py reset",