deploy:修改部署脚本,支持重复执行

This commit is contained in:
fanxb 2021-06-18 17:29:29 +08:00
parent 52a0908477
commit 4f0b8915e0

View File

@ -47,6 +47,7 @@ delete="delete"
if [ -z $1 ] || [ $1 == $start ];then if [ -z $1 ] || [ $1 == $start ];then
echo "start" echo "start"
docker-compose down
docker-compose up -d docker-compose up -d
elif [ $1 == $stop ];then elif [ $1 == $stop ];then
echo "stop" echo "stop"