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