From bf94d1416f7cf1c91a752334569a478e88a2eee1 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 31 Oct 2021 16:09:41 +0800 Subject: [PATCH] Update mw.tpl --- scripts/init.d/mw.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index 7314514a6..d48a17c53 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -16,6 +16,8 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin mw_path={$SERVER_PATH} +PATH=$PATH:$mw_path/bin +source $mw_path/bin/activate mw_start(){ isStart=`ps -ef|grep 'gunicorn -c setting.py app:app' |grep -v grep|awk '{print $2}'`