details
This commit is contained in:
parent
c656da2970
commit
cc2ca6ea86
1 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ This started as a problem trying to play games with friends who are all on diffe
|
||||||
With auto-reload:
|
With auto-reload:
|
||||||
* [Install cargo-watch](https://github.com/watchexec/cargo-watch?tab=readme-ov-file#install)
|
* [Install cargo-watch](https://github.com/watchexec/cargo-watch?tab=readme-ov-file#install)
|
||||||
|
|
||||||
Then
|
Then:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
watch -i client -cx run
|
watch -i client -cx run
|
||||||
|
@ -25,7 +25,7 @@ cargo run
|
||||||
### Client
|
### Client
|
||||||
* [Install Trunk](https://trunkrs.dev/#install)
|
* [Install Trunk](https://trunkrs.dev/#install)
|
||||||
|
|
||||||
Then
|
Then:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
trunk serve --open
|
trunk serve --open
|
||||||
|
@ -43,7 +43,7 @@ trunk build --release
|
||||||
cargo build
|
cargo build
|
||||||
```
|
```
|
||||||
|
|
||||||
--
|
----------
|
||||||
* The server automatically serves the built client from `/dist` at `0.0.0.0:3030`
|
* The server automatically serves the built client from `/dist` at `0.0.0.0:3030`
|
||||||
|
|
||||||
* Configure any custom clients to connect to `ws://localhost:3030/websocket`
|
* Configure any custom clients to connect to `ws://localhost:3030/websocket`
|
||||||
|
|
Loading…
Add table
Reference in a new issue