From 61383bbbacfef6dac5a7ef42c7e4dd513ab86335 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sat, 31 Oct 2020 16:33:09 -0400 Subject: [PATCH] add docker development hint to readme --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index e4383de1..6080fec5 100644 --- a/README.md +++ b/README.md @@ -414,6 +414,15 @@ npm install # Optional: install the extractor dependencies ./bin/setup.sh + +# Optional: develop via docker by mounting the code dir into the container +# if you edit e.g. ./archivebox/core/models.py on the docker host, runserver +# inside the container will reload and pick up your changes +docker build . -t archivebox +docker run -it -p 8000:8000 \ + -v $PWD/data:/data \ + -v $PWD/archivebox:/app/archivebox \ + archivebox server 0.0.0.0:8000 --debug --reload ``` ### Common development tasks