Create local-collaboration.md (#2651)

I forget how to do this every single time 😅 Please update anything that
is incorrect!

[[PR Description]]

Release Notes:

- N/A
This commit is contained in:
Nate Butler 2023-06-27 09:52:15 -04:00 committed by GitHub
commit f311d307b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,20 @@
# Local Collaboration
## Setting up the local collaboration server
### Setting up for the first time?
Install [Postgres](https://postgresapp.com) and run it.
Then, from the root of the repo, run `script/bootstrap`.
### Have a db that is out of date? / Need to migrate?
Try `cd crates/collab && cargo run -- migrate` from the root of the repo.
## 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.