2019-05-18 22:39:00 +08:00
|
|
|
# init mongodb data
|
|
|
|
$initFolder = "$($env:appveyor_build_folder)\DatabaseScripts\MongoDB"
|
|
|
|
cd $initFolder
|
2019-05-20 14:52:06 +08:00
|
|
|
|
|
|
|
cmd.exe /c "C:\mongodb\bin\mongo init.js"
|
2019-05-18 22:39:00 +08:00
|
|
|
|
|
|
|
$cmd = 'C:\mongodb\bin\mongo BootstrapAdmin --eval "printjson(db.getCollectionNames())"'
|
|
|
|
iex "& $cmd"
|
|
|
|
|
|
|
|
cd $($env:appveyor_build_folder)
|