Skip to content

Commit

Permalink
refactor from jes-explorer to explorer-jes
Browse files Browse the repository at this point in the history
Signed-off-by: Nakul Manchanda <nakul.manchanda@ibm.com>
  • Loading branch information
Nakul Manchanda committed Oct 21, 2019
1 parent c246c57 commit 05c7c05
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pax/prepare-workspace.sh
Expand Up @@ -38,8 +38,8 @@ rm -fr "${PAX_WORKSPACE_DIR}/content"
mkdir -p "${PAX_WORKSPACE_DIR}/content"

# copy plugin definition files
echo "[${SCRIPT_NAME}] copying plugin definitions ..."
cp -r plugin-definition "${PAX_WORKSPACE_DIR}/content"
# echo "[${SCRIPT_NAME}] copying plugin definitions ..."
# cp -r plugin-definition "${PAX_WORKSPACE_DIR}/content"

# install peerDependencies
echo "[${SCRIPT_NAME}] install peer dependencies (explorer-ui-server) ..."
Expand Down Expand Up @@ -71,8 +71,8 @@ cp -r dist/. "${PAX_WORKSPACE_DIR}/content/app"
# copy start script to target folder
echo "[${SCRIPT_NAME}] copying startup script ..."
mkdir -p "${PAX_WORKSPACE_DIR}/content/scripts"
cp -r scripts/jes-explorer-start.sh "${PAX_WORKSPACE_DIR}/content/scripts"
cp -r scripts/jes-explorer-configure.sh "${PAX_WORKSPACE_DIR}/content/scripts"
cp -r scripts/explorer-jes-start.sh "${PAX_WORKSPACE_DIR}/content/scripts"
cp -r scripts/explorer-jes-configure.sh "${PAX_WORKSPACE_DIR}/content/scripts"

# pre-configure server config
echo "[${SCRIPT_NAME}] update default UI server config ..."
Expand Down
Expand Up @@ -19,7 +19,7 @@
. $ROOT_DIR/scripts/utils/validateNode.sh
NODE_BIN=${NODE_HOME}/bin/node

EXPLORER_CONFIG="$ROOT_DIR/components/jes-explorer/bin/app/package.json"
EXPLORER_CONFIG="$ROOT_DIR/components/explorer-jes/bin/app/package.json"
EXPLORER_PLUGIN_BASEURI=$($NODE_BIN -e "process.stdout.write(require('${EXPLORER_CONFIG}').config.baseuri)")

# Remove any old config
Expand Down
4 changes: 2 additions & 2 deletions scripts/jes-explorer-start.sh → scripts/explorer-jes-start.sh 100755 → 100644
Expand Up @@ -25,12 +25,12 @@
. $ROOT_DIR/scripts/utils/validateNode.sh
NODE_BIN=${NODE_HOME}/bin/node

cd "$ROOT_DIR/components/jes-explorer/bin"
cd "$ROOT_DIR/components/explorer-jes/bin"
EXPLORER_PLUGIN_BASEURI=$($NODE_BIN -e "process.stdout.write(require('./app/package.json').config.baseuri)")
EXPLORER_PLUGIN_NAME=$($NODE_BIN -e "process.stdout.write(require('./app/package.json').config.pluginName)")

# get current ui server directory
SERVER_DIR="${ROOT_DIR}/components/jes-explorer/bin/server/"
SERVER_DIR="${ROOT_DIR}/components/explorer-jes/bin/server/"

# start service
$NODE_BIN $SERVER_DIR/src/index.js \
Expand Down

0 comments on commit 05c7c05

Please sign in to comment.