Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 81de114

Browse files
committed
Defining node-version in one place for all sandbox installation contexts
1 parent d9b3fb2 commit 81de114

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

sandbox/configure-sandbox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ abort_on_fail=1
2525
# environment is set
2626

2727
cd $CSBE_TOP
28-
[ ! -d .git ] && echo "nothing to configure for a pre-built asset sandbox" && exit 0
28+
[ ! -d .git ] && echo "nothing to configure for a pre-built asset sandbox ($CSBE_TOP/.git not found)" && exit 0
2929

3030
# Install git submodules
3131
[ -f .gitmodules ] && echo "Updating submodules" && git submodule update --init --recursive

sandbox/defaults.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ sandutil_load_options $CSBE_SANDBOX || { echo "failed to load options" >&2 && re
3737
# Uncomment and setup if node is required. Available versions can be seen
3838
# with the command:
3939
# ssh $DT_CLOUD_SERVER ls /home/web/SandboxRepos/software/node-$DT_OS_TYPE-*
40-
export CSBE_NODE_VER=16.15.1
40+
export CSBE_NODE_VER=`cat $CSBE_TOP/sandbox/node-version`
4141
export PATH=$CSBE_SANDBOX/node/bin:$CSBE_TOP/node_modules/.bin:./node_modules/.bin:$PATH
4242

4343
# Add $MY_SANDBOX/bin to the search path

sandbox/node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16.15.1

sandbox/shared/sandbox_config.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Common routines for codestream-server sandboxes
33

44
# Defaults values
5-
[ -n "$CSBE_NODE_VER" ] && _defaultNodeVersion=$CSBE_NODE_VER || { _defaultNodeVersion=16.15.1 && echo "CSBE_NODE_VER not defined. THIS IS BAD"; }
5+
[ -n "$CSBE_NODE_VER" ] && _defaultNodeVersion=$CSBE_NODE_VER || _defaultNodeVersion=`cat $CSSVC_BACKEND_ROOT/sandbox/node-version`
66

77
[ -z "$CSBE_API_DEFAULT_PORT" ] && export CSBE_API_DEFAULT_PORT=12079
88

@@ -85,6 +85,8 @@ function sbcfg_initialize {
8585
export PATH=$sbTop/node_modules/.bin:$PATH
8686
export NODE_PATH=$sbTop/node_modules:$NODE_PATH
8787
export PATH=$sbTop/bin:$PATH
88+
env | grep NODE_VER
89+
env | grep REPO_ROOT
8890

8991
# ---- CORE VARIABLES
9092
[ -z "$sbLogs" ] && sbcfg_set_var "${sbPrefix}_LOGS" $sbRoot/log

shared/codestream_configs/bin/update-all-configs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ default environment list: $environmentList
1616

1717
if [ "$DT_RDB_WHICH" == "nrdev" ]; then
1818
profiles="$DT_RESOURCES/codestream/config-profiles"
19-
environmentList="local local1 local2 dev pd pd2 qa qa2 stg"
19+
environmentList="local local1 local2 dev ci pi pd pd2 qa qa2 stg"
2020
# environmentList="local local1 local2 pd pd2 qa qa2 ci pi stg"
2121
elif [ "$DT_RDB_WHICH" == "nrprod" ]; then
2222
profiles="$DT_RESOURCES/codestream/config-profiles"

0 commit comments

Comments
 (0)