add helper scripts for mongodb
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash -e
|
||||||
|
|
||||||
DB_NAME=freqtrade_hyperopt
|
DB_NAME=freqtrade_hyperopt
|
||||||
|
|
||||||
hyperopt-mongo-worker --mongo=127.0.0.1:1234/${DB_NAME} --poll-interval=0.1
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
WORK_DIR="${DIR}/../.hyperopt/worker"
|
||||||
|
|
||||||
|
mkdir -p "${WORK_DIR}"
|
||||||
|
hyperopt-mongo-worker \
|
||||||
|
--mongo="127.0.0.1:1234/${DB_NAME}" \
|
||||||
|
--poll-interval=0.1 \
|
||||||
|
--workdir="${WORK_DIR}"
|
@@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
DB_PATH="${DIR}/../.mongodb"
|
DB_PATH="${DIR}/../.hyperopt/mongodb"
|
||||||
|
|
||||||
mkdir -p ${DB_PATH}
|
mkdir -p "${DB_PATH}"
|
||||||
mongod --dbpath ${DB_PATH} \
|
mongod --dbpath "${DB_PATH}" \
|
||||||
--bind_ip 127.0.0.1 \
|
--bind_ip 127.0.0.1 \
|
||||||
--port 1234 \
|
--port 1234 \
|
||||||
--directoryperdb \
|
--directoryperdb \
|
||||||
|
Reference in New Issue
Block a user