summaryrefslogtreecommitdiffstats
path: root/lcm/run.sh
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-04-04 11:14:13 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-04-04 11:27:08 +0800
commit496e4fea5e67caae96433150df2797947939312b (patch)
tree1f117b8210c0491decedb635161b66633f430450 /lcm/run.sh
parent6a0ed4caf89dbb5694ab4023c843d9f41c35cf53 (diff)
Integrate uwsgi with django
Change-Id: If70f5f4fb14452ab7a11075821124ddea2bad86d Issue-ID: VFC-1336 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'lcm/run.sh')
-rwxr-xr-xlcm/run.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/lcm/run.sh b/lcm/run.sh
index 32e0cfc3..8c9fcf8f 100755
--- a/lcm/run.sh
+++ b/lcm/run.sh
@@ -17,7 +17,8 @@ if [ ! -x $logDir ]; then
mkdir -p $logDir
fi
-nohup python manage.py runserver 0.0.0.0:8801 > /dev/null &
+# nohup python manage.py runserver 0.0.0.0:8801 > /dev/null &
+nohup uwsgi --http :8801 -t 120 --module lcm.wsgi --master --processes 4 &
while [ ! -f $logDir/runtime_lcm.log ]; do
sleep 1