最近发现个好东西
阿里云效:https://codeup.aliyun.com/
阿里流水线:https://flow.aliyun.com/
都是好东西啊,前者是代码管理工具(git),后者提供持续交付,部署的功能。及其的方便好用。
这里主要记录下部署Vue打包后的,部署时的脚本代码,很简单,且基本一样,所以为了不每个项目都写,这里备注下:
cd /www/wwwroot/xxx.com &&\
mkdir -p dist &&\
tar zxvf package.tgz -C ./dist &&\
wtool upload static &&\
\cp -rf ./dist/* ./ &&\
rm -rf ./dist package.tgz
以及Go的部署:
CUR="/home/site/go_sites/go_hot"
cd $CUR && tar zxvf package.tgz
goApp stop && goApp start
rm -rf package.tgz ossutil.log debug.log