doc(MongoDB): update AppVeyor scripts
This commit is contained in:
parent
597d3c1d91
commit
fca2c75a6a
|
@ -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"
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# init mongodb data
|
||||
mongo ~/src/Longbow/BootstrapAdmin/DatabaseScripts/MongoDB/init.js
|
||||
mongo ./init.js
|
||||
mongo BootstrapAdmin --eval "printjson(db.getCollectionNames())"
|
Loading…
Reference in New Issue