doc(MongoDB): update AppVeyor scripts
This commit is contained in:
parent
597d3c1d91
commit
fca2c75a6a
|
@ -1,8 +1,8 @@
|
||||||
# init mongodb data
|
# init mongodb data
|
||||||
$initFolder = "$($env:appveyor_build_folder)\DatabaseScripts\MongoDB"
|
$initFolder = "$($env:appveyor_build_folder)\DatabaseScripts\MongoDB"
|
||||||
cd $initFolder
|
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())"'
|
$cmd = 'C:\mongodb\bin\mongo BootstrapAdmin --eval "printjson(db.getCollectionNames())"'
|
||||||
iex "& $cmd"
|
iex "& $cmd"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
load("Dicts.js");
|
load("./Dicts.js");
|
||||||
load("Navigations.js");
|
load("./Navigations.js");
|
||||||
load("Groups.js");
|
load("./Groups.js");
|
||||||
load("Roles.js");
|
load("./Roles.js");
|
||||||
load("Users.js");
|
load("./Users.js");
|
||||||
|
|
||||||
conn = new Mongo("localhost:27017");
|
conn = new Mongo("localhost:27017");
|
||||||
db = conn.getDB("BootstrapAdmin");
|
db = conn.getDB("BootstrapAdmin");
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# init mongodb data
|
# init mongodb data
|
||||||
mongo ~/src/Longbow/BootstrapAdmin/DatabaseScripts/MongoDB/init.js
|
mongo ./init.js
|
||||||
mongo BootstrapAdmin --eval "printjson(db.getCollectionNames())"
|
mongo BootstrapAdmin --eval "printjson(db.getCollectionNames())"
|
Loading…
Reference in New Issue