From 17af1ae6ca22d3bf76d09705cb3f29b17dbfdab7 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Fri, 25 Mar 2022 21:18:41 +0100 Subject: WIP server --- playground/.gitignore | 1 + playground/env.sh | 3 +++ playground/server.sh | 3 ++- playground/server.yaml | 4 +++- 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 playground/.gitignore (limited to 'playground') diff --git a/playground/.gitignore b/playground/.gitignore new file mode 100644 index 0000000..3af0ccb --- /dev/null +++ b/playground/.gitignore @@ -0,0 +1 @@ +/data diff --git a/playground/env.sh b/playground/env.sh index b39dc8b..4ac88e0 100644 --- a/playground/env.sh +++ b/playground/env.sh @@ -3,5 +3,8 @@ PYTHON=${PYTHON:-python} RUN_PATH=$(cd $(dirname -- "$0") && pwd) ROOT_PATH=$RUN_PATH/.. +DATA_PATH=$RUN_PATH/data export PYTHONPATH=$ROOT_PATH/src_py + +mkdir -p $DATA_PATH diff --git a/playground/server.sh b/playground/server.sh index 8011973..7abe54e 100755 --- a/playground/server.sh +++ b/playground/server.sh @@ -3,5 +3,6 @@ . $(dirname -- "$0")/env.sh exec $PYTHON -m hatter server \ - --conf server.yaml \ + --conf $RUN_PATH/server.yaml \ + --db $DATA_PATH/hatter.db "$@" diff --git a/playground/server.yaml b/playground/server.yaml index 0ebc807..701f995 100644 --- a/playground/server.yaml +++ b/playground/server.yaml @@ -1 +1,3 @@ -repos: {} +repos: + hat-util: + url: ../../hat/hat-util -- cgit v1.2.3-70-g09d2