Skip to content

Commit 30fcaf7

Browse files
jackblack369HeChangHaoGary
authored andcommitted
[ci] Add 'deploystart' option to bootstrap script
1 parent ee3b743 commit 30fcaf7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/docker-dingo-store.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ start() {
5959
i=1
6060
program_dir=$BASE_DIR/dist/${FLAGS_role}${i}
6161
# clean log
62-
rm -f ${program_dir}/log/*
62+
# rm -f ${program_dir}/log/*
6363
start_program_docker "${FLAGS_role}" "${program_dir}"
6464
}
6565

@@ -77,7 +77,7 @@ stop()
7777

7878
usage()
7979
{
80-
echo "Usage: $0 [deploy|start|stop|restart|cleanstart]"
80+
echo "Usage: $0 [deploy|start|stop|restart|cleanstart|deploystart]"
8181
}
8282

8383
if [ $# -lt 1 ];then
@@ -99,6 +99,9 @@ elif [ "$1" = "cleanstart" ];then
9999
clean
100100
deploy
101101
start
102+
elif [ "$1" = "deploystart" ];then
103+
deploy
104+
start
102105
else
103106
usage
104107
fi

0 commit comments

Comments
 (0)