Removed code related to running mongodb and db folder creation

This commit is contained in:
VakarisZ 2021-05-25 14:36:29 +03:00
parent 73f23ad383
commit 559b61b581
6 changed files with 1 additions and 14 deletions

View File

@ -176,7 +176,6 @@ function Deploy-Windows([String] $monkey_home = (Get-Item -Path ".\").FullName,
} | Select-Object -ExpandProperty Name
# Move all files from extracted folder to mongodb folder
New-Item -ItemType directory -Path (Join-Path -Path $binDir -ChildPath "mongodb")
New-Item -ItemType directory -Path (Join-Path -Path $monkey_home -ChildPath $MONKEY_ISLAND_DIR | Join-Path -ChildPath "db")
"Moving extracted files"
Move-Item -Path (Join-Path -Path $binDir -ChildPath $mongodb_folder | Join-Path -ChildPath "\bin\*") -Destination (Join-Path -Path $binDir -ChildPath "mongodb\")
"Removing zip file"

View File

@ -58,7 +58,6 @@ popd || {
}
mkdir -p "${MONGODB_DIR}"/bin
mkdir -p "${MONGODB_DIR}"/db
cp "${TEMP_MONGO}"/mongodb-*/bin/mongod "${MONGODB_DIR}"/bin/mongod
cp "${TEMP_MONGO}"/mongodb-*/LICENSE-Community.txt "${MONGODB_DIR}"/
chmod a+x "${MONGODB_DIR}"/bin/mongod

View File

@ -1,4 +0,0 @@
@echo Are you sure? (Press Any Key)
@pause
@rmdir /s /q db
@mkdir db

View File

@ -1,3 +0,0 @@
REM - Runs MongoDB Server -
@title MongoDB
@bin\mongodb\mongod.exe --dbpath db --bind_ip 127.0.0.1

View File

@ -1,5 +1,3 @@
REM - Runs MongoDB Server & Monkey Island Server using built pyinstaller EXE -
if not exist db mkdir db
start windows\run_mongodb.bat
start windows\run_cc_exe.bat
start https://localhost:5000
start https://localhost:5000

View File

@ -1,5 +1,3 @@
REM - Runs MongoDB Server & Monkey Island Server using python -
if not exist db mkdir db
start windows\run_mongodb.bat
pipenv run windows\run_cc.bat
start https://localhost:5000