Add --enable-threads to uwsgi 27/88527/1
authorfujinhua <fu.jinhua@zte.com.cn>
Mon, 27 May 2019 10:39:24 +0000 (18:39 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Mon, 27 May 2019 10:39:24 +0000 (18:39 +0800)
Change-Id: Id0460cfcc5796ad1f548fcbe1d6fc3d763a87bb8
Issue-ID: VFC-1397
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
res/run.sh

index 77beb8a..e371a04 100755 (executable)
@@ -21,8 +21,8 @@ fi
 # nohup python manage.py runserver 0.0.0.0:8802 > /dev/null &
 
 if [ "${SSL_ENABLED}" = "true" ]; then
-    nohup uwsgi --https :8802,res/pub/ssl/cert/foobar.crt,res/pub/ssl/cert/foobar.key, -t 120 --module res.wsgi --master --processes 4 &
+    nohup uwsgi --https :8802,res/pub/ssl/cert/foobar.crt,res/pub/ssl/cert/foobar.key, -t 120 --enable-threads --module res.wsgi --master --processes 4 &
 else
-    nohup uwsgi --http :8802 -t 120 --module res.wsgi --master --processes 4 &
+    nohup uwsgi --http :8802 -t 120 --enable-threads --module res.wsgi --master --processes 4 &
 fi