aboutsummaryrefslogtreecommitdiffstats
path: root/run.sh
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-04-04 11:04:38 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-04-04 11:25:52 +0800
commit8cf5ec4adee3868174f1a7c2735a7fca8992f498 (patch)
treef0cee455a4fb9bfe851c7a8dead72574fad97cb1 /run.sh
parenta4cb44676d4fde2dc0f172ab8c90811d9b16981c (diff)
Integrate uwsgi with django
Change-Id: I600f42489c95a54b8a70ca1978d6b039fe945ebe Issue-ID: VFC-1336 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/run.sh b/run.sh
index 8623a421..c4849d3a 100755
--- a/run.sh
+++ b/run.sh
@@ -18,7 +18,8 @@ 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 lcm.wsgi --master --processes 4 &
while [ ! -f $logDir/runtime_catalog.log ]; do
sleep 1