Put timeout on opening bolt
This commit is contained in:
5
init.sh
5
init.sh
@@ -2,7 +2,7 @@
|
||||
|
||||
port=57017
|
||||
|
||||
if ! curl -sS localhost:$port > /dev/null; then
|
||||
if false && ! curl -sS localhost:$port > /dev/null; then
|
||||
prefix=/tmp/whodunit.db
|
||||
mkdir -p $prefix/data
|
||||
mongod \
|
||||
@@ -26,3 +26,6 @@ remove() {
|
||||
}
|
||||
|
||||
export DBURI=${DB_URI:-"mongodb://localhost:$port"}
|
||||
|
||||
export DRIVERTYPE=boltdb
|
||||
export DBURI=$(mktemp)
|
||||
|
||||
Reference in New Issue
Block a user