Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2023-02-10 16:43:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6b7e9e59003982f36538166e815f00225d4f8578
6b7e9e59
1 parent
79c87b81
更新发布脚本
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
0 deletions
publish_dev.sh
publish_prod.sh
publish_dev.sh
0 → 100644
View file @
6b7e9e5
#!/usr/bin/env sh
# -----------------------------------------------
# Filename: publish.sh
# Revision: 1.0
# Date: 2022年5月20日
# Author: Hooke
# Description: **** 根据php项目相应特征书写项目发布流程
# -----------------------------------------------
# 当发生错误时中止脚本
set
-e
# 本地Git服务器目录路径
path
=
/Users/huyirui/program/itomix/git/isp/f/custom_form
# 编译输出文件夹
output
=
front
# 打包
npm run build
# 移除Git服务器目录下项目文件夹
rm -r
$path
"/
${
output
:?
}
"
# 把本地编译输出文件夹添加到服务器目录
mv
"
${
output
:?
}
/"
$path
# 提交到Git服务器
cd
$path
"/
${
output
:?
}
"
git pull
git add -A
git commit -m
'自定义表单-前端网页更新'
git push
git checkout develop;
git pull origin develop;
git merge --no-edit custom_form;
git push origin develop;
# 更新SSH服务器上文件
ssh -p 22 itomix@ipadbiz.cn
'
cd /opt/space-dev/;
git pull origin develop;
'
git checkout custom_form;
publish_prod.sh
0 → 100644
View file @
6b7e9e5
#!/usr/bin/env sh
# -----------------------------------------------
# Filename: publish.sh
# Revision: 1.0
# Date: 2022年5月20日
# Author: Hooke
# Description: **** 根据php项目相应特征书写项目发布流程
# -----------------------------------------------
# 当发生错误时中止脚本
set
-e
# 更新其他分支数据
git checkout master
git pull origin master
git merge --no-edit custom_form
git push origin master
git checkout guanzong
git pull origin guanzong
git merge --no-edit custom_form
git push origin guanzong
git checkout mituo
git pull origin mituo
git merge --no-edit custom_form
git push origin mituo
ssh -p 22 itomix@ipadbiz.cn
'
cd /opt/oa;
git pull origin master;
cd /opt/guanzong;
git pull origin guanzong;
cd /opt/mituo;
git pull origin mituo;
'
git checkout custom_form;
Please
register
or
login
to post a comment