cloudcomputing-platform-por.../deploy.sh

34 lines
788 B
Bash
Raw Normal View History

# VERSION=1.0.0-snapshot
# MVN_VERSION=$(mvn -q \
# -Dexec.executable=echo \
# -Dexec.args='${project.version}' \
# --non-recursive \
# exec:exec)
# echo "MVN_VERSION=${MVN_VERSION}"
# 10.1.30.156
DEST_HOST=lr62-dev
MVN_NAME=$(mvn -q \
-Dexec.executable=echo \
-Dexec.args='${project.artifactId}' \
--non-recursive \
exec:exec)
echo "MVN_NAME=${MVN_NAME}"
MVN_FINALNAME=$(mvn -q \
-Dexec.executable=echo \
-Dexec.args='${project.build.finalName}' \
--non-recursive \
exec:exec)
echo "MVN_FINALNAME=${MVN_FINALNAME}"
2024-05-30 11:03:09 +02:00
mvn clean package
scp target/$MVN_FINALNAME.war life@$DEST_HOST:/home/life/Portal-Bundle/deploy/$MVN_NAME.war
ssh $DEST_HOST "sudo journalctl -fl -u liferay"