Skip to content

Commit

Permalink
Merge pull request #9600 from tinyspeck/sarabee-vtctld2-node-8.17
Browse files Browse the repository at this point in the history
Update web/vtctld2 to use node v8.17
  • Loading branch information
deepthi authored Feb 1, 2022
2 parents d67588f + 678cf1c commit 67ee4c4
Show file tree
Hide file tree
Showing 4 changed files with 6,341 additions and 781 deletions.
48 changes: 24 additions & 24 deletions go/vt/vtctld/rice-box.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tools/web_bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ set -euo pipefail

web_dir="$VTROOT/web/vtctld2"

TARGET_NODE_VERSION="v8.0.0"
TARGET_NODE_VERSION="v8.17.0"
node_version=$(node -v)

TARGET_NPM_VERSION="5.0.0"
TARGET_NPM_VERSION="6.13.4"
npm_version=$(npm -v)

if [[ -z ${node_version+x} || -z ${npm_version+x} ]]; then
Expand Down
14 changes: 8 additions & 6 deletions web/vtctld2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ This project was generated with [angular-cli](https://github.com/angular/angular
You will need (very old!) installations of npm and node to run the front-end dev server. To check your versions:

```bash
node -v # v8.0.0 required
npm -v # 5.0.0 required
node -v # v8.17.0 required
npm -v # 6.13.4 required
```

Using a node version manager like [nvm](https://github.com/nvm-sh/nvm) is strongly recommended, as the versions required by this project are several years out of date.

1. Install nvm using the [installation guide](https://github.com/nvm-sh/nvm#installing-and-updating).
1. Install node (and npm): `nvm install 8.0.0`
1. In the shell you're using for vtctld UI development: `nvm use 8.0.0`
1. Install node (and npm): `nvm install 8.17.0`
1. In the shell you're using for vtctld UI development: `nvm use 8.17.0`

### Starting the dev server

Expand Down Expand Up @@ -52,8 +52,10 @@ make web_build

This will regenerate a bunch of files in the `web/vtctld2/dist/` directory, as well as update the embedded files in `rice-box.go`. Make sure you commit these generated files to your branch when opening your pull request.

To verify your changes, run Vitess locally. It is recommended to [use Docker](https://vitess.io/docs/get-started/local-docker/), which will make the vtctld UI accessible at `http://localhost:15000/app`.

To then verify your changes using the built files:
- Rebuild the vtctld with `make build`
- Run Vitess locally following the [Local Install guide](https://vitess.io/docs/get-started/local/)
- Verify your changes on `http://localhost:15000/app`

## Troubleshooting

Expand Down
Loading

0 comments on commit 67ee4c4

Please sign in to comment.