auto deploy your program and attach it to cronjob
Usage: /home/joerong/work/fooyun/fooyun/source/dev/script/deploy/my_deploy.sh [OPTIONS]
OPTIONS:
-m method: install|upgrade|status|start|stop|restart
-s service: web|webapi|mgr|func_master|func_slave
-v version: which version to install/upgrade
-u urlRoot: url root where to download deploy files
bash <(curl https://github.com/joerong666/crondeploy/blob/master/my_deploy.sh) -m install -s web -v 1.5.3
bash <(curl https://github.com/joerong666/crondeploy/blob/master/my_deploy.sh) -m upgrade -s web -v 1.5.3
bash <(curl https://github.com/joerong666/crondeploy/blob/master/my_deploy.sh) -m start -s web
bash <(curl https://github.com/joerong666/crondeploy/blob/master/my_deploy.sh) -m stop -s web
bash <(curl https://github.com/joerong666/crondeploy/blob/master/my_deploy.sh) -m restart -s web