summaryrefslogtreecommitdiff
path: root/resources/local_dev.sh
diff options
context:
space:
mode:
Diffstat (limited to 'resources/local_dev.sh')
-rwxr-xr-xresources/local_dev.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/resources/local_dev.sh b/resources/local_dev.sh
new file mode 100755
index 0000000..68bb46b
--- /dev/null
+++ b/resources/local_dev.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+env_vars=$(cat << EOF
+ LOG_LEVEL=debug
+ LOG_FORMAT=plain
+ LOG_OUTPUT=stdout
+ LISTEN_PORT=1234
+ DATABASE_PATH=runtime/store.db
+EOF
+)
+
+case "$1" in
+ --get-config)
+ echo "$env_vars"
+ ;;
+ *)
+ clear && env $env_vars go run . $@
+ ;;
+esac