doc(MongoDB): update AppVeyor scripts

This commit is contained in:
Argo Zhang 2019-05-20 14:52:06 +08:00
parent 597d3c1d91
commit fca2c75a6a
3 changed files with 8 additions and 8 deletions

View File

@ -1,8 +1,8 @@
# init mongodb data
$initFolder = "$($env:appveyor_build_folder)\DatabaseScripts\MongoDB"
cd $initFolder
$cmd = "C:\mongodb\bin\mongo $initFolder\init.js"
iex "& $cmd"
cmd.exe /c "C:\mongodb\bin\mongo init.js"
$cmd = 'C:\mongodb\bin\mongo BootstrapAdmin --eval "printjson(db.getCollectionNames())"'
iex "& $cmd"

View File

@ -1,8 +1,8 @@
load("Dicts.js");
load("Navigations.js");
load("Groups.js");
load("Roles.js");
load("Users.js");
load("./Dicts.js");
load("./Navigations.js");
load("./Groups.js");
load("./Roles.js");
load("./Users.js");
conn = new Mongo("localhost:27017");
db = conn.getDB("BootstrapAdmin");

View File

@ -1,3 +1,3 @@
# init mongodb data
mongo ~/src/Longbow/BootstrapAdmin/DatabaseScripts/MongoDB/init.js
mongo ./init.js
mongo BootstrapAdmin --eval "printjson(db.getCollectionNames())"