-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmanage.sh
More file actions
executable file
·27 lines (27 loc) · 819 Bytes
/
manage.sh
File metadata and controls
executable file
·27 lines (27 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#/bin/bash
case "$1" in
"run_dev")
echo "Running development server and client"
export ON_PI=false
gnome-terminal -e 'python dev_main.py'
gnome-terminal -e 'npm start --prefix client'
;;
"run_live_without_pimote")
echo "Running live server and client without the Pi-Mote"
export ON_PI=false
gunicorn --bind 0.0.0.0:5678 live_main:app --workers 1
;;
"run_live_with_pimote")
echo "Running live server and client with the Pi-Mote"
export ON_PI=true
gunicorn --bind 0.0.0.0:5678 live_main:app --workers 1
;;
"build_client")
echo "Building Light Controller Client"
npm run build --prefix client
;;
*)
echo "Unrecognised argument '$1'."
exit 1
;;
esac