themblem/scripts/tmux.sh
2024-09-01 21:51:50 +01:00

18 lines
367 B
Bash
Executable File

#!/bin/bash
set -e
if test -z "$TMUX"; then
exec tmux new-session "$0" "$@"
fi
cd $(dirname $0)/..
source venv/bin/activate
pip3 install -r requirements.txt
tmux new-window -n serve "cd api/api && ./manage.py runserver; $SHELL -i"
tmux split-window "cd web && npm run serve; $SHELL -i"
tmux split-window "cd detection && python3 app.py; $SHELL -i"
$SHELL -i