summaryrefslogtreecommitdiffstats
path: root/res/run.sh
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-04-11 10:05:58 +0800
committerYan Yang <yangyanyj@chinamobile.com>2019-04-11 02:28:56 +0000
commitd9b8ba8d519818a87b721304109e9a4cb4051c2d (patch)
tree8ddfbac2b27571744e382f7f3a2f1361b8648978 /res/run.sh
parent36bd24f9c28f6c5e507b80f0ade118ce08335a77 (diff)
Add https support for project
Change-Id: Ib846cb1fe9bb37d7e5491e41fe3558c5082870bd Issue-ID: VFC-1342 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'res/run.sh')
-rwxr-xr-xres/run.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/res/run.sh b/res/run.sh
index 22a532b..37fe675 100755
--- a/res/run.sh
+++ b/res/run.sh
@@ -18,7 +18,13 @@ if [ ! -x $logDir ]; then
mkdir -p $logDir
fi
-nohup python manage.py runserver 0.0.0.0:8802 > /dev/null &
+# 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 &
+else
+ nohup uwsgi --http :8802 -t 120 --module res.wsgi --master --processes 4 &
+fi
while [ ! -f $logDir/runtime_res.log ]; do
sleep 1