1 Star 0 Fork 8

熊星南/mmall-m

forked from happymmall/mmall-m 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
deploy.sh 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
海阔天空丶 提交于 2018-06-24 23:31 . update
# @Author: 15156
# @Date: 2018-05-31 13:20:24
# @Last Modified by: 15156
# @Last Modified time: 2018-06-22 17:52:13
GIT_HOME=/developer/git-repository/
DEST_PATH=/product/front/
if [ ! -n "$1" ];
then
echo -e "Please input a project name! You can input as follows:"
echo -e "./fe-deploy.sh mmall-m"
exit
fi
if [ $1 = "mmall-m" ];
then
echo -e "---------Enter mmall-m--------"
cd $GIT_HOME$1
elif [ $1 = "admin-fe" ];
then
echo -e "---------Enter admin-fe--------"
cd $GIT_HOME$1
elif [ $1 = "tmac-music" ];
then
echo -e "---------Enter tmac-music--------"
cd $GIT_HOME$1
elif [ $1 = "take-out" ];
then
echo -e "---------Enter take-out--------"
cd $GIT_HOME$1
else
echo -e "Invalid Project Name!"
exit
fi
# clean dist
echo -e "---------Clean Dist--------"
rm -rf ./dist
echo -e "---------Git Checkout Master--------"
git checkout master
echo -e "---------Git Pull--------"
git pull
echo -e "---------Yarn Install--------"
yarn
echo -e "---------Yarn Run Dist--------"
yarn run dist
if [ -d "./dist" ];
then
# bakeup dest
echo -e "---------Dest Bakeup--------"
mv $DEST_PATH/$1/dist $DEST_PATH/$1/dist.bak
echo -e "---------clean Dest--------"
rm -rf $DEST_PATH/$1/dist
echo -e "---------copy Dest--------"
cp -R ./dist $DEST_PATH/$1/
echo -e "---------Deploy Success--------"
else
echo -e "---------Deploy Fail--------"
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/xingnanxiong/mmall-m.git
git@gitee.com:xingnanxiong/mmall-m.git
xingnanxiong
mmall-m
mmall-m
master

搜索帮助