platform/dev/local-mongo/start.sh
Andrey Sobolev d502ba86d9
UBERF-7690: Local mongo setup configuration (#6335)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2024-08-15 17:10:29 +07:00

9 lines
291 B
Bash
Executable File

#!/bin/bash
mkdir -p ~/.mongo/data
mongod --config ./mongod.conf --dbpath ~/.mongo/data --directoryperdb --logpath ~/.mongo/mongod.log --fork # --replSet rs0
# while [ test $$(echo "rs.initiate().ok || rs.status().ok" | mongosh) -eq 1]
# do
# echo 'Wait for mongo init'
# sleep 1
# done