mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
add argument to start image server
This commit is contained in:
+15
-3
@@ -5,8 +5,20 @@
|
|||||||
#python manage.py
|
#python manage.py
|
||||||
|
|
||||||
gpath=$(poetry run which gunicorn)
|
gpath=$(poetry run which gunicorn)
|
||||||
cd app
|
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" &
|
"$gpath" -b 0.0.0.0:9877 -w 4 --threads=2 "imgserver:app" &
|
||||||
echo "Booted image server"
|
|
||||||
cd ../
|
cd ../
|
||||||
"$gpath" -b 0.0.0.0:9876 -w 1 --threads=4 "manage:create_app()" #--log-level=debug
|
;;
|
||||||
|
\?)
|
||||||
|
echo "Invalid option: -$OPTARG" >&2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
"$gpath" -b 0.0.0.0:9876 -w 1 --threads=4 "manage:create_app()"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user