forked from doublechaintech/scm-biz-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.sh
25 lines (20 loc) · 1.23 KB
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# !/bin/bash
function deploy(){
local projname="retailscm-biz-suite"
if [ -z "$projname" ]; then
echo "no project name provided"
return 1
fi
echo "deploying project ........................ $projname"
#return 5
ssh [email protected] "mkdir resin-3.1.12/webapps/$projname"
rsync -avz bizcore/* [email protected]:/home/philipz/resin-3.1.12/webapps/$projname/
ssh [email protected] "rm resin-3.1.12/webapps/$projname/WEB-INF/lib"
ssh [email protected] "mkdir resin-3.1.12/webapps/$projname/WEB-INF/lib"
rsync -avz bizcore/WEB-INF/lib/* [email protected]:/home/philipz/resin-3.1.12/webapps/$projname/WEB-INF/lib/
ssh [email protected] "mysql -uroot -p0254891276 -h 127.0.0.1 < resin-3.1.12/webapps/$projname/WEB-INF/classes/META-INF/${projname}_mysql.sql"
ssh [email protected] "mkdir -p resin-3.1.12/webapps/ROOT/admin/$projname"
ssh [email protected] "mkdir -p resin-3.1.12/webapps/ROOT/datacompass/$projname"
rsync -avz bizui/dist/* [email protected]:/home/philipz/resin-3.1.12/webapps/ROOT/admin/$projname/
}
deploy