build.sh
352 字节
#!/usr/bin/env bash
##部署脚本/文件路径
#deploy_shell_path="/home/tiptok/test/ability.tar"
deploy_shell_path="/home/tiptok/test/ability.zip"
go build -o ability main.go
chmod +x ability
#tar -zcvf ${deploy_shell_path} ability conf deploy.sh run.sh start.sh stop.sh
zip -r ${deploy_shell_path} ability conf deploy.sh run.sh start.sh stop.sh