add a flask module to serve images

This commit is contained in:
geoffrey45
2022-05-02 13:45:24 +03:00
parent 6527b3abc5
commit 1e7af1a800
4 changed files with 57 additions and 6 deletions
+7 -2
View File
@@ -3,6 +3,11 @@
# $ppath manage.py
#python manage.py
gpath=$(poetry run which gunicorn)
"$gpath" -b 0.0.0.0:9876 -w 1 --threads=4 "manage:create_app()" #--log-level=debug
gpath=$(poetry run which gunicorn)
cd app
$gpath -b 0.0.0.0:9877 -w 4 --threads=2 "imgserver:app" &
echo "Booted image server"
cd ../
$gpath -b 0.0.0.0:9876 -w 1 --threads=4 "manage:create_app()" #--log-level=debug