mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-11 21:47:22 +00:00
23 lines
466 B
Bash
Executable File
23 lines
466 B
Bash
Executable File
# ppath=$(poetry run which python)
|
|
|
|
# $ppath manage.py
|
|
|
|
#python manage.py
|
|
|
|
gpath=$(poetry run which gunicorn)
|
|
while getopts ':s' opt; do
|
|
case $opt in
|
|
s)
|
|
echo "🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴"
|
|
cd "./app"
|
|
"$gpath" -b 0.0.0.0:9877 -w 4 --threads=2 "imgserver:app" &
|
|
cd ../
|
|
;;
|
|
\?)
|
|
echo "Invalid option: -$OPTARG" >&2
|
|
;;
|
|
esac
|
|
done
|
|
|
|
"$gpath" -b 0.0.0.0:9876 -w 1 --threads=4 "manage:create_app()"
|