diff --git a/.idx/dev.nix b/.idx/dev.nix index 28773f1f..c4a9df7a 100644 --- a/.idx/dev.nix +++ b/.idx/dev.nix @@ -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 && diff --git a/platform-nix-idx/mongod.conf b/platform-nix-idx/mongod.conf index ecbdbe89..3494be04 100644 --- a/platform-nix-idx/mongod.conf +++ b/platform-nix-idx/mongod.conf @@ -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: