mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-07 03:35:35 +00:00
25 lines
464 B
Bash
Executable File
25 lines
464 B
Bash
Executable File
#!/bin/zsh
|
|
|
|
gpath=$(poetry run which gunicorn)
|
|
# pytest=$(poetry run which pytest)
|
|
|
|
# $pytest # -q
|
|
|
|
while getopts ':s' opt; do
|
|
case $opt in
|
|
s)
|
|
echo "Starting image server"
|
|
cd "./app"
|
|
"$gpath" -b 0.0.0.0:1971 -w 1 --threads=1 "imgserver:app" &
|
|
cd ../
|
|
echo "Done ✅"
|
|
;;
|
|
\?)
|
|
echo "Invalid option: -$OPTARG" >&2
|
|
;;
|
|
esac
|
|
done
|
|
|
|
|
|
echo "Starting swing"
|
|
"$gpath" -b 0.0.0.0:1970 --threads=2 "manage:create_api()" |