diff options
author | yangyan <yangyanyj@chinamobile.com> | 2019-04-11 10:05:58 +0800 |
---|---|---|
committer | Yan Yang <yangyanyj@chinamobile.com> | 2019-04-11 02:28:56 +0000 |
commit | d9b8ba8d519818a87b721304109e9a4cb4051c2d (patch) | |
tree | 8ddfbac2b27571744e382f7f3a2f1361b8648978 /res/run.sh | |
parent | 36bd24f9c28f6c5e507b80f0ade118ce08335a77 (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-x | res/run.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |