代码语言:javascript复制
neo@MacBook-Pro-Neo ~/workspace/devops % bin/wechat
Usage: wechat [options] message
Options:
-h, --help show this help message and exit
-c /usr/local/etc/wechat.ini, --config=/usr/local/etc/wechat.ini
config file
-t "1|2|3", --totag="1|2|3"
tag
--debug debug mode
Homepage: http://www.netkiller.cn Author: Neo <netkiller@msn.com>
代码语言:javascript复制cache:
paths:
- node_modules
stages:
- build
# - test
- deploy
build-job:
stage: build
script:
- npm install express --save
deploy-job:
stage: deploy
before_script:
- wechat -c /etc/wechat.ini -t 1 开发环境准备部署
after_script:
- wechat -c /etc/wechat.ini -t 1 开发环境部署完成
script:
# - rsync -auzv --delete * www@192.168.30.10:/opt/netkiller.cn/www.netkiller.cn/
- lrsync '*' www@192.168.30.10:/opt/netkiller.cn/www.netkiller.cn/
- ssh www@192.168.30.10 "pm2 --update-env restart /opt/netkiller.cn/www.netkiller.cn/app.js"
代码语言:javascript复制neo@MacBook-Pro-Neo ~/workspace/devops % bin/voice
Usage: voice [options] message
Options:
-h, --help show this help message and exit
--config=/usr/local/etc/notification.ini
config file
-t, --test voice test
-s SAVE, --save=SAVE save as wav file
--debug debug mode
Subscribe:
-d, --daemon run as daemon
Publish:
-c notification, --channel=notification
pubsub channel
Homepage: http://www.netkiller.cn Author: Neo <netkiller@msn.com>