blob: 976502cd33cffebe63c4938ce07a6caec175b51f [file] [log] [blame]
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -05001#. ./set-https-env.sh
2#cd ../bin
3#cp ../config/config.json.https ../config/config.json
4export PROJECT_HOME=/opt/openecomp/sdnc
5export PROJECT_RUNTIME_BASE=/opt/openecomp/sdnc
6#export JAVA_HOME=/usr/lib/jvm/java-7-oracle
7export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
8export SSL_ENABLED=false
9export SDNC_CONFIG_DIR=${PROJECT_HOME}/data/properties
10export NODE_ENV=production
11export CLASSPATH=$PROJECT_HOME/admportal/lib:$CLASSPATH
12
13PATH=${PATH}:${JAVA_HOME}/bin
14
15#. ${PROJECT_HOME}/etc/default.env
16
17MAIN_MENU=`python $PROJECT_HOME/admportal/shell/getAdmPortalProp.py MainMenu | sed -e 's|['\'']||g'`
18export MAIN_MENU
19SSL_ENABLED=`python $PROJECT_HOME/admportal/shell/getAdmPortalProp.py sslEnabled | sed -e 's|['\'']||g'`
20export SSL_ENABLED
21
22if [ ! -d /opt/openecomp/sdnc/admportal/node_modules ]; then
23 cd /opt/openecomp/sdnc/admportal && npm install
24fi
25
26cd /opt/openecomp/sdnc/admportal
27node shell/www
28#if [ "true" == "${SSL_ENABLED}" ]; then
29 #pm2 startOrRestart process.https.json
30#else
31 #pm2 startOrRestart process.http.json
32#fi