2023-06-27 13:51:30 +00:00
|
|
|
# Local Collaboration
|
|
|
|
|
|
|
|
## Setting up the local collaboration server
|
|
|
|
|
|
|
|
### Setting up for the first time?
|
|
|
|
|
2023-06-27 14:52:38 +00:00
|
|
|
1. Make sure you have livekit installed (`brew install livekit`)
|
|
|
|
1. Install [Postgres](https://postgresapp.com) and run it.
|
|
|
|
1. Then, from the root of the repo, run `script/bootstrap`.
|
2023-06-27 13:51:30 +00:00
|
|
|
|
|
|
|
### Have a db that is out of date? / Need to migrate?
|
|
|
|
|
2023-06-27 14:52:38 +00:00
|
|
|
1. Make sure you have livekit installed (`brew install livekit`)
|
2023-06-27 14:05:37 +00:00
|
|
|
1. Try `cd crates/collab && cargo run -- migrate` from the root of the repo.
|
2023-06-27 14:52:38 +00:00
|
|
|
1. Run `script/seed-db`
|
2023-06-27 13:51:30 +00:00
|
|
|
|
|
|
|
## Testing collab locally
|
|
|
|
|
|
|
|
1. Run `foreman start` from the root of the repo.
|
|
|
|
1. In another terminal run `script/start-local-collaboration`.
|
|
|
|
1. Two copies of Zed will open. Add yourself as a contact in the one that is not you.
|
|
|
|
1. Start a collaboration session as normal with any open project.
|