-
Notifications
You must be signed in to change notification settings - Fork 0
/
startWildFly.sh
executable file
·22 lines (18 loc) · 969 Bytes
/
startWildFly.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
JBOSS_DIR="/home/tyler/programs/wildfly-10.0.0.Final"
JBOSS_BIND_ADDR="0.0.0.0"
APP_NAME="helloWorld"
APP_DEPLOY_NAME="helloWorld.war"
APP_SRC_DIR="/home/tyler/code/helloWorld/"
APP_DEPLOY_SRC=$APP_SRC_DIR"target/"$APP_NAME
APP_DEPLOY_DEST=$JBOSS_DIR"/standalone/deployments"/$APP_DEPLOY_NAME
#cd $APP_SRC_DIR
#mvn -DskipTests clean compile install
echo $APP_DEPLOY_DEST
sudo rm -rf $JBOSS_DIR/standalone/deployments/$APP_DEPLOY_NAME
sudo rm -rf $JBOSS_DIR/standalone/deployments/$APP_DEPLOY_NAME.*
cp -r $APP_DEPLOY_SRC $APP_DEPLOY_DEST
touch $JBOSS_DIR/standalone/deployments/$APP_DEPLOY_NAME.dodeploy
sudo rm -rf $JBOSS_DIR/standalone/data/timer-service-data
#export JAVA_OPTS="-XX:MaxPermSize=1024m -Xms1024m -Xmx2048m -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
$JBOSS_DIR/bin/standalone.sh -b $JBOSS_BIND_ADDR --server-config="../../../../../tyler/code/helloWorld/config/standalone-full.xml" -P $APP_SRC_DIR"config/tkc.config"