From b1e933086379a85d830319f7a68772e110762c81 Mon Sep 17 00:00:00 2001 From: khushal Date: Wed, 25 Dec 2024 20:14:09 +0530 Subject: [PATCH] (20241226) Kafka on server. --- kill.sh | 3 ++- run.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/kill.sh b/kill.sh index de059e6..8aaf299 100644 --- a/kill.sh +++ b/kill.sh @@ -3,7 +3,8 @@ # Kill all the scripts: echo "Killing the script." pkill -9 -f "$(pwd)/api/main.py" -#pkill -9 -f "$(pwd)/playground/socketio/from_kafka.py" & +pkill -9 -f "$(pwd)/playground/socketio/to_kafka.py" +pkill -9 -f "$(pwd)/playground/socketio/from_kafka.py" # Get the name of the current directory, # and kill the monitors of the above scripts: diff --git a/run.sh b/run.sh index 390c796..f21df25 100644 --- a/run.sh +++ b/run.sh @@ -3,7 +3,8 @@ # Use this to run the microservice without any docker setup. source .venv/bin/activate python3 "$(pwd)/api/main.py" --host "0.0.0.0" --port 5106 --workers 4 --script-id "kps_cnv_KBC3MoaU" & -#python3 "$(pwd)/playground/socketio/from_kafka.py" & +python3 "$(pwd)/playground/socketio/to_kafka.py" & +python3 "$(pwd)/playground/socketio/from_kafka.py" & deactivate # All done: