首页 专题 文章 代码 归档

【自用】阿里流水线(持续交付)以及一些部署脚本

最近发现个好东西

阿里云效: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
此文阅读完毕,您可以:分享
二维码图片 扫描关注我们哟