Update cli.sh

pull/109/head
midoks 3 years ago
parent bdf7db605e
commit 812a165f29
  1. 11
      cli.sh

@ -21,9 +21,14 @@ mw_start_debug(){
python3 task.py &
gunicorn -b :7200 -k gevent -w 1 app:app
# gunicorn -b :7200 -k eventlet -w 1 app:app
# gunicorn -c setting.py app:app
}
mw_start_debug2(){
python3 task.py &
gunicorn -c setting.py app:app
}
mw_stop()
{
PLIST=`ps -ef|grep app:app |grep -v grep|awk '{print $2}'`
@ -45,4 +50,8 @@ case "$1" in
mw_stop
mw_start_debug
;;
'debug2')
mw_stop
mw_start_debug2
;;
esac
Loading…
Cancel
Save