Skip to content

Commit

Permalink
fix starting script
Browse files Browse the repository at this point in the history
  • Loading branch information
minghsu0107 committed Jul 3, 2023
1 parent e5c93cb commit bd2da49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
```
Expand Down
5 changes: 3 additions & 2 deletions deployments/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bd2da49

Please sign in to comment.