Skip to content

Commit

Permalink
Add/pin configurable node version to 18.09. Backport/tweak of #7220)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Jan 18, 2019
1 parent 889c102 commit a10d2c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/common_startup.sh
Expand Up @@ -18,6 +18,7 @@ CREATE_VENV=1
REPLACE_PIP=$SET_VENV
COPY_SAMPLE_FILES=1
SKIP_CLIENT_BUILD=${GALAXY_SKIP_CLIENT_BUILD:-0}
NODE_VERSION=${GALAXY_NODE_VERSION:-"9.11.1"}

for arg in "$@"; do
[ "$arg" = "--skip-eggs" ] && FETCH_WHEELS=0
Expand Down Expand Up @@ -223,9 +224,9 @@ fi
if [ $SKIP_CLIENT_BUILD -eq 0 ]; then
# Ensure dependencies are installed
if [ -n "$VIRTUAL_ENV" ]; then
if ! in_venv "$(command -v node)"; then
if ! in_venv "$(command -v node)" || [ "$(node --version)" != "v$NODE_VERSION" ]; then
echo "Installing node into $VIRTUAL_ENV with nodeenv."
nodeenv -n 9.11.1 -p
nodeenv -n $NODE_VERSION -p
fi
if ! in_venv "$(command -v yarn)"; then
echo "Installing yarn into $VIRTUAL_ENV with npm."
Expand Down

0 comments on commit a10d2c5

Please sign in to comment.