mirror of
https://github.com/JHUAPL/PINE.git
synced 2026-04-24 03:00:05 -04:00
Including: 1. Generated python documentat in docs/. 2. Starting a new python client in client/. 3. Moving testing data to test/. 4. The addition of Cypress UI tests and pytest tests in test/. 5. A number of bug fixes and improvements.
28 lines
759 B
Bash
Executable File
28 lines
759 B
Bash
Executable File
#!/bin/bash
|
|
# (C) 2019 The Johns Hopkins University Applied Physics Laboratory LLC.
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
BACKEND_PORT=${BACKEND_PORT:-5000}
|
|
EVE_PORT=${EVE_PORT:-5001}
|
|
MONGO_PORT=${MONGO_PORT:-27018}
|
|
|
|
pushd ${DIR} &> /dev/null
|
|
|
|
read -r -d '' CODE << EOF
|
|
import code;
|
|
import sys;
|
|
|
|
sys.path.append("${DIR}");
|
|
import pine.client;
|
|
pine.client.setup_logging();
|
|
client = pine.client.LocalPineClient("http://localhost:${BACKEND_PORT}", "http://localhost:${EVE_PORT}", "mongodb://localhost:${MONGO_PORT}");
|
|
code.interact(banner="",exitmsg="",local=locals())
|
|
EOF
|
|
|
|
echo "${CODE}"
|
|
echo ""
|
|
PINE_LOGGING_CONFIG_FILE=$(realpath ${DIR}/../shared/logging.python.dev.json) pipenv run python3 -c "${CODE}"
|
|
|
|
popd &> /dev/null
|