使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
注册
登录
shenkun
/
itemmanager-huzhou
关注
1
点赞
0
派生
0
代码
工单
0
合并请求
0
版本发布
0
百科
动态
浏览代码
fix: bug
master
yxhc
3 周前
父节点
168ecffbeb
当前提交
d2e1988bde
共有
3 个文件被更改
,包括
45 次插入
和
1 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+0
-0
1111drone111.yml1
+44
-0
autoPublish.sh
+1
-1
vite.config.js
.drone.yml → 1111drone111.yml1
查看文件
+ 44
- 0
autoPublish.sh
查看文件
@@ -0,0 +1,44 @@
function buildUI() {
echo "##### 安装vue项目依赖"
# npm i
echo "##### 开始构建"
npm run build
echo "##### 构建完成"
}
function moveFile() {
echo "##### 删除旧版本"
rm -rf ../web/huzhou/dist
mkdir ../web/huzhou/dist
echo "##### 移动新版本到指定目录"
mv -f ./dist/* ../web/huzhou/dist
echo "##### 文件移动完成"
}
function openSSH() {
echo "请输入服务器(121.199.28.40)密码: "
read password # -s 参数使得输入内容不回显
sshpass -p "$password" ssh root@121.199.28.40 'cd ..; cd /server/testweb; git pull'
}
function gitCommint() {
cd ..
cd web
git pull
git add .
git commit -m '湖州项管新版本'
git push
cd ..
cd itemmanager-huzhou
ls
}
#使用前先安装sshpass
#brew install sshpass
buildUI
moveFile
gitCommint
openSSH
+ 1
- 1
vite.config.js
查看文件
@@ -31,7 +31,7 @@ export default defineConfig(() => {
}
},
build: {
target: ['es2015', 'chrome58']
//
target: ['es2015', 'chrome58']
// rollupOptions: {
// manualChunks: (id) => {
// if (id.includes('node_modules')) {
撰写
预览
正在加载...
取消
保存