aboutsummaryrefslogtreecommitdiff
path: root/playground
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2022-03-25 21:18:41 +0100
committerbozo.kopic <bozo@kopic.xyz>2022-03-25 21:18:41 +0100
commit17af1ae6ca22d3bf76d09705cb3f29b17dbfdab7 (patch)
tree34ace40ec3a433592f5b2157cb231217c8821043 /playground
parent130055c70ad2b062adf2c4df13dd2ed5ce062f97 (diff)
WIP server
Diffstat (limited to 'playground')
-rw-r--r--playground/.gitignore1
-rw-r--r--playground/env.sh3
-rwxr-xr-xplayground/server.sh3
-rw-r--r--playground/server.yaml4
4 files changed, 9 insertions, 2 deletions
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