Skip to content

Commit ab511a6

Browse files
authored
Merge pull request #64 from joshuanianji/edgedb-documentation
EdgeDB documentation
2 parents 80a33b7 + 4480629 commit ab511a6

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/edgedb-cli/NOTES.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
## Note to Users
1+
## Usage
22

3-
This feature mounts the edgedb config and data folder to the host machine for persistence. To do so, it makes some assumptions about `edgedb info`:
3+
**The EdgeDB instance should not be in the same container as the CLI.** My experience doing so makes the `edgedb ui` command start failing once you restart the container. I recommend the following options:
4+
5+
1. Use a docker-compose template with two services: one for the CLI and one for the EdgeDB instance.
6+
7+
You can either use the [javascript-node-edgedb](https://github.com/joshuanianji/devcontainer-templates/blob/main/src/javascript-node-edgedb) or the [rust-edgedb](https://github.com/joshuanianji/devcontainer-templates/blob/main/src/rust-edgedb) templates, or use them as references to make your own.
8+
9+
Once inside the devcontainer, you can run `edgedb instance link` to connect the CLI to the instance. Check the templates above for more details.
10+
11+
2. Connect to a cloud instance [with `edgedb cloud`](https://docs.edgedb.com/cloud/cli).
12+
13+
## Notes on Volume Mounts
14+
15+
This feature mounts the edgedb config and data folder for persistence. To do so, it makes some assumptions about `edgedb info`:
416

517
```bash
618
$ edgedb info
@@ -15,7 +27,7 @@ EdgeDB uses the following local paths:
1527
└────────────┴────────────────────────────────────────┘
1628
```
1729

18-
**These paths may change based on the OS!**. This feature is tested on Ubuntu and Debian and the paths match up, but may not work for others.
30+
**These paths may change based on the OS!** This feature is tested on Ubuntu and Debian and the paths match up, but may not work for others.
1931

2032
## OS and Architecture Support
2133

0 commit comments

Comments
 (0)