Fix uwsgi issue 14/91714/2
authorOlivia.Zhan <zhan.jie1@zte.com.cn>
Fri, 19 Jul 2019 06:37:40 +0000 (14:37 +0800)
committerOlivia.Zhan <zhan.jie1@zte.com.cn>
Fri, 19 Jul 2019 07:30:30 +0000 (15:30 +0800)
nohup: can't execute 'uwsgi': No such file or directory
ref VFC-1408 change the way to start django

Issue-ID: VFC-1429
Signed-off-by: Olivia.Zhan <zhan.jie1@zte.com.cn>
Change-Id: Ia96663a79fe9be3430e7fbbd59e68b1a158d2757

run.sh

diff --git a/run.sh b/run.sh
index caab259..a0bbe64 100755 (executable)
--- a/run.sh
+++ b/run.sh
@@ -18,12 +18,12 @@ if [ ! -x  $logDir  ]; then
     mkdir -p $logDir
 fi
 
-nohup python manage.py runserver 0.0.0.0:8806 > /dev/null &
+nohup python manage.py runserver 0.0.0.0:8806 > /dev/null &
 # nohup uwsgi --http :8806 -t 120 --module genericparser.wsgi --master --processes 4 &
 
 
-if [ "${SSL_ENABLED}" = "true" ]; then
-    nohup uwsgi --https :8806,genericparser/pub/ssl/cert/foobar.crt,genericparser/pub/ssl/cert/foobar.key, -t 120 --module genericparser.wsgi --master --processes 4 &
-else
-    nohup uwsgi --http :8806 -t 120 --module genericparser.wsgi --master --processes 4 &
-fi
+if [ "${SSL_ENABLED}" = "true" ]; then
+    nohup uwsgi --https :8806,genericparser/pub/ssl/cert/foobar.crt,genericparser/pub/ssl/cert/foobar.key, -t 120 --module genericparser.wsgi --master --processes 4 &
+else
+    nohup uwsgi --http :8806 -t 120 --module genericparser.wsgi --master --processes 4 &
+fi