Subversion Repositories SmartDukaan

Rev

Rev 2713 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2713 Rev 2858
Line 16... Line 16...
16
# Get standard environment variables
16
# Get standard environment variables
17
PRGDIR=`dirname $(readlink -f "$PRG")`
17
PRGDIR=`dirname $(readlink -f "$PRG")`
18
 
18
 
19
PROJECT_DIR="`dirname ${PRGDIR}`"
19
PROJECT_DIR="`dirname ${PRGDIR}`"
20
 
20
 
-
 
21
if [ $# -ne 1 ]
-
 
22
then
-
 
23
	echo "Missing argument: deployment server IP address"
-
 
24
	echo "Usage: $0 <deployment_ip>"
-
 
25
	exit 1
-
 
26
fi
21
 
27
 
22
PROD_SERVER="192.168.141.43"
28
PROD_SERVER=$1
23
 
29
 
24
 
30
 
25
MAVEN_REPO="${HOME}/.m2/repository"
31
MAVEN_REPO="${HOME}/.m2/repository"
26
echo "Started copying wars to production server"
32
echo "Started copying wars to ${PROD_SERVER}"
27
echo "======================================================="
33
echo "======================================================="
28
 
34
 
29
scp ${MAVEN_REPO}/in/shop2020/Website/1.0-SNAPSHOT/Website-1.0-SNAPSHOT.war ${PROD_SERVER}:${MAVEN_REPO}/in/shop2020/Website/1.0-SNAPSHOT/Website-1.0-SNAPSHOT.war
35
scp ${MAVEN_REPO}/in/shop2020/Website/1.0-SNAPSHOT/Website-1.0-SNAPSHOT.war ${PROD_SERVER}:${MAVEN_REPO}/in/shop2020/Website/1.0-SNAPSHOT/Website-1.0-SNAPSHOT.war
30
scp ${MAVEN_REPO}/in/shop2020/Support/1.0-SNAPSHOT/Support-1.0-SNAPSHOT.war ${PROD_SERVER}:${MAVEN_REPO}/in/shop2020/Support/1.0-SNAPSHOT/Support-1.0-SNAPSHOT.war
36
scp ${MAVEN_REPO}/in/shop2020/Support/1.0-SNAPSHOT/Support-1.0-SNAPSHOT.war ${PROD_SERVER}:${MAVEN_REPO}/in/shop2020/Support/1.0-SNAPSHOT/Support-1.0-SNAPSHOT.war
31
scp ${MAVEN_REPO}/in/shop2020/Social/1.0-SNAPSHOT/Social-1.0-SNAPSHOT.war ${PROD_SERVER}:${MAVEN_REPO}/in/shop2020/Social/1.0-SNAPSHOT/Social-1.0-SNAPSHOT.war
37
scp ${MAVEN_REPO}/in/shop2020/Social/1.0-SNAPSHOT/Social-1.0-SNAPSHOT.war ${PROD_SERVER}:${MAVEN_REPO}/in/shop2020/Social/1.0-SNAPSHOT/Social-1.0-SNAPSHOT.war