README: add note for saving repo root

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-01-12 16:08:09 +08:00
parent cbb1922519
commit a8407e3ffe
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,7 @@ There are some environment variables that can be used to configure the server:
An example invocation would be: An example invocation would be:
``` ```
mkdir repo-root && chown 1000 repo-root
docker run \ docker run \
-d \ -d \
--restart unless-stopped \ --restart unless-stopped \
@ -41,5 +42,7 @@ docker run \
-p 9119:80 \ -p 9119:80 \
-e RV_PREFIXES=https://github.com/example \ -e RV_PREFIXES=https://github.com/example \
-e RV_SECRET=rvsecretkey \ -e RV_SECRET=rvsecretkey \
-e RV_ROOT=/data \
-v $(pwd)/repo-root:/data \
reveal-serve reveal-serve
``` ```