From b3f275da5c464e74149c7be3e906ef857c44adf5 Mon Sep 17 00:00:00 2001 From: Liam Keegan Date: Mon, 11 Nov 2024 10:02:57 +0100 Subject: [PATCH] Update README_DEPLOYMENT.md with visitor count info --- README_DEPLOYMENT.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README_DEPLOYMENT.md b/README_DEPLOYMENT.md index 0051cc6..53ec07c 100644 --- a/README_DEPLOYMENT.md +++ b/README_DEPLOYMENT.md @@ -60,3 +60,9 @@ sudo sqlite3 docker_volume/predicTCR.db sqlite> UPDATE user SET is_admin=true WHERE email='user@embl.de'; sqlite> .quit ``` +### Visitor count + +To get a count of the unique visitor IPs from the nginx logs: +``` +sudo docker compose logs frontend --no-log-prefix | grep "GET" | awk '{print $1}' | sort | uniq | wc -l +```