16 lines
341 B
Bash
Executable File
16 lines
341 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if test -z "$TMUX"; then
|
|
exec tmux new-session "$0" "$@"
|
|
fi
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
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
|