Skip to content

Commit

Permalink
prod: Ensure the Zulip version of node is installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
timabbott committed Jan 7, 2017
1 parent e4b065e commit 54acbc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/lib/install
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ if [ "$VIRTUALENV_NEEDED" = "yes" ]; then
"$ZULIP_PATH"/scripts/lib/create-production-venv "$ZULIP_PATH"
fi

"$ZULIP_PATH"/scripts/lib/install-node

# puppet apply
mkdir -p /etc/zulip
(
Expand Down
4 changes: 4 additions & 0 deletions scripts/lib/upgrade-zulip-stage-2
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ if os.path.islink((os.path.join(deploy_path, "zproject/local_settings.py"))):
subprocess.check_call([os.path.join(deploy_path, "scripts", "lib", "create-production-venv"),
deploy_path])

# Make sure the right version of node is installed
subprocess.check_call([os.path.join(deploy_path, "scripts", "lib", "install-node"),
deploy_path])

# And then, building/installing the static assets.
if args.from_git:
# Note: The fact that this is before we apply puppet changes means
Expand Down

0 comments on commit 54acbc4

Please sign in to comment.