From bd2da49547f342a8699d4afdf5eae27a4ad9e407 Mon Sep 17 00:00:00 2001 From: ming Date: Mon, 3 Jul 2023 22:18:16 +0800 Subject: [PATCH] fix starting script --- README.md | 5 +++-- deployments/run.sh | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 28e50aa..fff372b 100644 --- a/README.md +++ b/README.md @@ -68,9 +68,10 @@ Example setting: To run locally, execute the following command: ```bash cd deployments -sudo ./run.sh start +sudo ./run.sh add-host +./run.sh start ``` -`run.sh` needs root permission to alias `minio` to `localhost` in `/etc/hosts`. +`run.sh add-host` needs root permission to alias `minio` to `localhost` in `/etc/hosts`. Check cassandra connection: ``` diff --git a/deployments/run.sh b/deployments/run.sh index 8e6c278..b89dc04 100755 --- a/deployments/run.sh +++ b/deployments/run.sh @@ -15,14 +15,15 @@ addHost() { } case "$1" in + "add-host") + addHost;; "start") - addHost docker-compose up -d --scale random-chat=3;; "stop") docker-compose stop;; "clean") docker-compose down -v;; *) - echo "command should be 'start', 'stop', or 'clean'" + echo "command should be 'add-host', 'start', 'stop', or 'clean'" exit 1;; esac \ No newline at end of file