Skip to content

Commit

Permalink
📝 Update cmds to run mongodb to use mongosh
Browse files Browse the repository at this point in the history
  • Loading branch information
ujibang committed Dec 7, 2023
1 parent 520d3c2 commit eac92bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/setup-with-docker.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ If MongoDB is not already running, the following command will start a replica se

[source,bash]
----
$ mkdir -p /tmp/db && mongod --fork --syslog --replSet=foo -dbpath=/tmp/db && mongo --eval 'if (!rs.status().ok) rs.initiate();'
$ mkdir -p /tmp/db && mongod --fork --syslog --replSet=foo -dbpath=/tmp/db && mongosh --quiet --eval 'if (!rs.isMaster().ismaster) rs.initiate();'
----

Run RESTHeart with:
Expand Down Expand Up @@ -92,7 +92,7 @@ $ docker network create restheart-network
2) Run a MongoDB container

[source,bash]
$ docker run -d --name mongodb --network restheart-network mongo:5.0
$ docker run -d --name mongodb --network restheart-network mongo:7.0

3) Run a RESTHeart container

Expand Down
3 changes: 1 addition & 2 deletions docs/setup.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ If you want to use the Websocket API and handle Transactions, you'll need to run
NOTE: RESTHeart is extensively tested with MongoDB 4.2, 4.4, v5.0, v6.0 and v7.0

To get RESTHeart and MongoDB up and running, use these commands:

[source,bash]
----
# start MongoDB as single instance Replica Set
$ mkdir -p /tmp/db && mongod --fork --syslog --replSet=foo -dbpath=/tmp/db && mongosh --quiet --eval 'if (!rs.isMaster().ismaster) rs.initiate({});'
$ mkdir -p /tmp/db && mongod --fork --syslog --replSet=foo -dbpath=/tmp/db && mongosh --quiet --eval 'if (!rs.isMaster().ismaster) rs.initiate();'
# start RESTHeart
$ java -jar restheart.jar
----
Expand Down

0 comments on commit eac92bd

Please sign in to comment.