diff --git a/cli.sh b/cli.sh index a9224927d..14454a80e 100755 --- a/cli.sh +++ b/cli.sh @@ -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 \ No newline at end of file