feat: initiate mongo replset by default
Signed-off-by: Zomatree <me@zomatree.live>
This commit is contained in:
5 files changed
+27
-3
No files matched your search
@@ -0,0 +1,5 @@
|
||||
try {
|
||||
rs.status();
|
||||
} catch (e) {
|
||||
rs.initiate({ _id: "rs0", members: [{ _id: 0, host: "localhost:27017" }] });
|
||||
}
|
||||
Reference in new issue
Block a user