1 Star 1 Fork 2

weilan-ui/wl-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
deploy.sh 555 Bytes
一键复制 编辑 原始数据 按行查看 历史
weilan 提交于 2020-04-17 12:03 +08:00 . *) 工程目录结构域修正
#!/bin/bash
function deploy() {
echo "进入自动部署程序..."
# 测试服务器
test_host="root@47.98.136.80"
# 生产服务器
prod_host="root@47.98.136.80"
project_path="/data/wwwroot/wlui.com.cn"
if [ "$1" == "prod" ]; then
target="$prod_host:$project_path"
else
target="$test_host:$project_path"
fi
echo "路径匹配完毕,正在上传..."
rsync -azcuP ./dist/ --exclude node_modules --exclude coverage --exclude .env --exclude .nyc_output --exclude .git "$target"
echo "部署至 $target 完成"
}
deploy $@
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/weilan-ui/wl-admin.git
git@gitee.com:weilan-ui/wl-admin.git
weilan-ui
wl-admin
wl-admin
master

搜索帮助