Skip to content

Commit

Permalink
perf: 优化部署脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
jamebal committed Aug 30, 2022
1 parent f503323 commit 6038ccf
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions jc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,8 @@ if [ $# -gt 0 ]; then
git fetch --all
git reset --hard origin/$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
git pull origin master
# 初始化文件
mkdir -p "${cur_path}/docker/www/"
tar -xzf "${cur_path}/www/releases/dist-latest.tar" -C "${cur_path}/docker/www/"
# 启动
before_start
$COMPOSE pull
$COMPOSE up -d
# 检测服务是否启动
check_run "更新"
run_exec nginx "nginx -s reload"
install
elif [[ "$1" == "uninstall" ]]; then
shift 1
uninstall
Expand Down

0 comments on commit 6038ccf

Please sign in to comment.