Change cargo commands to only build storage-mem in CONTRIBUTING.md (#1814)

This commit is contained in:
Rushmore Mushambi 2023-04-15 12:16:29 +02:00 committed by GitHub
parent 1aac97f0da
commit 40e75f3f35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,19 +35,19 @@ cargo run -- help
To run the SurrealDB database server, use the following command:
```bash
cargo run -- start --log trace --user root --pass root memory
cargo run --no-default-features --features storage-mem,http,scripting -- start --log trace --user root --pass root memory
```
To listen to code changes as you develop, use the following command:
```bash
cargo watch -x 'run -- start --log trace --user root --pass root memory'
cargo watch -x 'run --no-default-features --features storage-mem,http,scripting -- start --log trace --user root --pass root memory'
```
SurrealDB runs by default on port 8000. To change the default port, use the following command:
```bash
cargo run -- start --log trace --user root --pass root --bind 0.0.0.0:9000 memory
cargo run --no-default-features --features storage-mem,http,scripting -- start --log trace --user root --pass root --bind 0.0.0.0:9000 memory
```
To run all tests manually, use the SurrealDB command-line from your terminal: