From 62ed5047c037996d480c135bdac5a2246840923f Mon Sep 17 00:00:00 2001 From: ALIHAN DIKEL Date: Sun, 27 Oct 2024 23:51:45 +0300 Subject: [PATCH] autocommit --- README.md | 7 ++++--- scripts/constant_pull.sh | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fd6c4c0..729e3c7 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,10 @@ ### working -> for rpi-tello * init: * wifi dongle tak & xiaomi uzatıcı tak - * ssh on server (.219) - * sudo su && source venv/bin/activate - * ./scripts/pull_from_origin.sh && export $(grep -v '^#' env | xargs) && python src/server/server.py + * supervisor server process'i başlatır +* start constant puller: + * on server + * ./scripts/constant_pull.sh * run to monitor ups battery stats: * on client * websocat ws://192.168.1.219:8000/ws/stats diff --git a/scripts/constant_pull.sh b/scripts/constant_pull.sh index 3be3623..f852487 100755 --- a/scripts/constant_pull.sh +++ b/scripts/constant_pull.sh @@ -4,8 +4,8 @@ while true; do echo -e "\033[94m[INFO]\033[0m Pulling latest changes from 'refactor/v2'..." grc git pull origin refactor/v2 --no-rebase - echo -e "\033[94m[INFO]\033[0m Restarting 'tello-server' using supervisorctl..." - grc sudo supervisorctl restart tello-server +# echo -e "\033[94m[INFO]\033[0m Restarting 'tello-server' using supervisorctl..." +# grc sudo supervisorctl restart tello-server echo -e "\033[92m[SUCCESS]\033[0m Cycle complete. Waiting for the next iteration..." sleep 5