Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-09-05 14:31:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5362c74becbc84eeaa590ecfcccaaf4a573f9402
5362c74b
1 parent
98776b34
新增编译配置
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletions
.gitignore
publish.sh
.gitignore
View file @
5362c74
...
...
@@ -6,7 +6,6 @@ dist-ssr
.history
doc
.vscode
publish.sh
src/views/test/*
src/store/test.js
cypress
...
...
publish.sh
0 → 100644
View file @
5362c74
#!/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
# 编译输出文件夹
output
=
voice
# 打包
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
# 更新SSH服务器上文件
ssh -p 22 itomix@ipadbiz.cn
'cd /opt/voice/f/voice && git pull'
Please
register
or
login
to post a comment