add debug

This commit is contained in:
Mr Chen
2018-12-13 12:56:06 +08:00
parent daf5c7c2b0
commit 38be955738
+9
View File
@@ -9,6 +9,11 @@ mw_start(){
}
mw_start_debug(){
gunicorn -b :7200 app:app &
python task.py &
}
mw_stop()
{
ps -ef|grep app:app |grep -v grep|awk '{print $2}'|xargs kill -9
@@ -22,4 +27,8 @@ case "$1" in
mw_stop
mw_start
;;
'debug')
mw_stop
mw_start_debug
;;
esac