From d6400a6083fc1b37a41a520d3fd86a55d09f0637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tao=20Bror=20Bojl=C3=A9n?= Date: Fri, 8 Mar 2019 16:25:53 +0000 Subject: [PATCH] add example crontab --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index ba81b28..d342dbb 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,17 @@ After running the backend in Docker: To run in production, use `docker-compose -f docker-compose.yml -f docker-compose.production.yml` instead of just `docker-compose`. +An example crontab: +``` +# crawl 50 stale instances (plus any newly discovered instances from them) +# the -T flag is important; without it, docker-compose will allocate a tty to the process +15,45 * * * * docker-compose -f docker-compose.yml -f docker-compose.production.yml exec -T django python manage.py scrape +# build the edges based on how much users interact +15 3 * * * docker-compose -f docker-compose.yml -f docker-compose.production.yml exec -T django python manage.py build_edges +# layout the graph +20 3 * * * docker-compose -f docker-compose.yml -f docker-compose.production.yml run gephi java -Xmx1g -jar build/libs/graphBuilder.jar +``` + ### Frontend - `yarn build` to create an optimized build for deployment