Skip to content

Commit

Permalink
Move mongodb runtime files to outside json-scada folder on Project ID…
Browse files Browse the repository at this point in the history
…X platform.
  • Loading branch information
riclolsen committed Dec 4, 2024
1 parent 0ab53d4 commit 9056260
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .idx/dev.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
init-mongodb = "
rm -rf ~/.emu/avd
rm -rf ~/.androidsdkroot/* &&
mkdir -p ~/json-scada/mongodb/var/lib/mongo/ &&
mkdir -p ~/json-scada/mongodb/var/log/mongodb/ &&
mkdir -p ~/mongodb/var/lib/mongo/ &&
mkdir -p ~/mongodb/var/log/mongodb/ &&
mongod -f ~/json-scada/platform-nix-idx/mongod.conf &&
mongosh json_scada < ~/json-scada/mongo_seed/a_rs-init.js &&
mongosh json_scada < ~/json-scada/mongo_seed/b_create-db.js &&
Expand Down
4 changes: 2 additions & 2 deletions platform-nix-idx/mongod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ net:
bindIp: 127.0.0.1
port: 27017
storage:
dbPath: "/home/user/json-scada/mongodb/var/lib/mongo"
dbPath: "/home/user/mongodb/var/lib/mongo"
systemLog:
destination: file
path: "/home/user/json-scada/mongodb/var/log/mongodb/mongod.log"
path: "/home/user/mongodb/var/log/mongodb/mongod.log"
# logAppend: true

replication:
Expand Down

0 comments on commit 9056260

Please sign in to comment.