From a2dadc97c547958f2425866d8d26e66f66c7b22e Mon Sep 17 00:00:00 2001 From: lza_menace Date: Mon, 3 Apr 2023 21:21:35 -0700 Subject: [PATCH] add more info in docs --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 0b44c16..f5c79e7 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,21 @@ make dev # access at http://127.0.0.1:5000 ``` +### Background Tasks + +There are 3 things that need to run in the background: +* validating nodes that have been added +* checking existing node health +* scraping peer lists + +I accomplish this via `crontab` and some management scripts. + +``` +./manage.sh validate +./manage.sh check +./manace.sh get_peers +``` + ### Production For production, update `SERVER_NAME` in `.env` to your production URL/domain. Use `manage.sh` (or provided `Makefile`) to serve the Flask process using Gunicorn. @@ -45,3 +60,5 @@ For production, update `SERVER_NAME` in `.env` to your production URL/domain. Us Runs the Gunicorn process on port 4000. Setup a web server to proxy requests to that port. Kill production Gunicorn with `make kill`. + +