Skip to content

Commit a0e8773

Browse files
committed
Add some documentation about setting up a git index
Closes #54
1 parent 8c36835 commit a0e8773

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ up and run.
2121
export S3_BUCKET=...
2222
export S3_ACCESS_KEY=...
2323
export S3_SECRET_KEY=...
24+
export S3_REGION=...
2425
2526
# Credentials for talking to github
2627
export GH_CLIENT_ID=...
@@ -33,8 +34,27 @@ export SESSION_KEY=...
3334
export DATABASE_URL=...
3435
3536
# Remote and local locations of the registry index
36-
export GIT_REPO_URL=https://path/to/repo
37-
export GIT_REPO_CHECKOUT=path/to/checkout
37+
export GIT_REPO_URL=file://`pwd`/tmp/index-bare
38+
export GIT_REPO_CHECKOUT=`pwd`/tmp/index-co
39+
```
40+
41+
### Set up the git index
42+
43+
First, run these commands in this repository's checkout to create a blank index:
44+
45+
```
46+
mkdir -p tmp
47+
git init --bare tmp/index-bare
48+
git clone tmp/index-bare tmp/index-co
49+
touch tmp/index-co/.git/git-daemon-export-ok
50+
```
51+
52+
Second, configure cargo to publish to your local registry by adding this to your
53+
local `~/.cargo/config`
54+
55+
```
56+
[registry]
57+
index = "http://localhost:8888/git/index"
3858
```
3959

4060
## Running

0 commit comments

Comments
 (0)