فهرست منبع

multiprocessing w/ gunicorn

kevin 2 سال پیش
والد
کامیت
3fa19c47bc
3فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 1 0
      src/requirements.txt
  2. 2 0
      src/run.sh
  3. 2 0
      src/stop.sh

+ 1 - 0
src/requirements.txt

@@ -13,3 +13,4 @@ typing-extensions==3.10.0.2
 urllib3==1.26.7
 Werkzeug==2.0.2
 zipp==3.6.0
+gunicorn==20.1.0

+ 2 - 0
src/run.sh

@@ -0,0 +1,2 @@
+#! /bin/bash
+venv/bin/gunicorn -w 4 -b 0.0.0.0:8092 -p run.pid mainPalio4:app

+ 2 - 0
src/stop.sh

@@ -0,0 +1,2 @@
+#! /bin/bash
+kill -TERM $(cat run.pid)