Skip to content

Commit

Permalink
br: Update web deps and README (#44651)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored Jun 21, 2023
1 parent 49dfef9 commit 25eb7a1
Show file tree
Hide file tree
Showing 2 changed files with 357 additions and 418 deletions.
15 changes: 8 additions & 7 deletions br/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,22 @@ The web app requires `npm` to build. It can be compiled by running webpack in
*this* directory

```sh
# from `web/src/*` produces `web/dist/*`
# from `br/web/src/*` produces `br/web/dist/*`
cd web/
export NODE_OPTIONS="--openssl-legacy-provider"
npm install
npm run build
```

or, equivalently, running the make command in the *parent* directory.

```sh
# from `web/src/*` produces `web/dist/*`
make web
# from `br/web/src/*` produces `br/web/dist/*`
make br_web
```

The output can be found in the `web/dist/` folder. Lightning embeds the entire
`web/dist/` folder into Go code via [vfsgen]. The web app compilation and Go
The output can be found in the `br/web/dist/` folder. Lightning embeds the entire
`br/web/dist/` folder into Go code via [vfsgen]. The web app compilation and Go
code conversion can be done via the make command

```sh
Expand All @@ -37,10 +38,10 @@ make data_parsers
```

For web development, you could build a special version of `tidb-lightning` which
reads directly from `web/dist/` by
reads directly from `br/web/dist/` by

```sh
make lightning_for_web
make build_lightning_for_web
```

Run `bin/tidb-lightning --server-mode --status-addr 127.0.0.1:8289`, then open
Expand Down
Loading

0 comments on commit 25eb7a1

Please sign in to comment.