8369d6c24c261351f3493b2282e051e484b35b1c
[aai/sparky-be.git] / sparkybe-onap-application / src / main / scripts / start.sh
1 #!/bin/sh
2
3 APP_HOME="/opt/app/sparky"
4 CONFIG_HOME=${APP_HOME}/config
5
6 PROPS="-DAPP_HOME=${APP_HOME} -DCONFIG_HOME=${CONFIG_HOME} -Dlogging.config=${CONFIG_HOME}/logging/logback.xml"
7
8 set -x
9 jar ufv ${APP_HOME}/lib/sparkybe-onap-application*.jar -C ${CONFIG_HOME}/portal/ BOOT-INF/classes/portal.properties -C ${CONFIG_HOME}/portal/ BOOT-INF/classes/key.properties
10
11 #
12 # change the working directory so that Spring-Boot will pick up the config folder from the right path
13 #
14 cd $APP_HOME
15
16 java -Xms1024m -Xmx4096m $PROPS -jar ${APP_HOME}/lib/sparkybe-onap-application*.jar