claude go reimplement

This commit is contained in:
tyler committed 2026-10-26 20:30:43 -07:00
1 parent 4bcb924158
commit f523c79618
83 files changed
+3714 -3454

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
# Builds the program and runs it against a throwaway copy of the database on port 1612.
# Reads page/script edits from assets/ each time (loads them into the copy).
set -e
cd "$(dirname "$0")/.."
make build
dir=$(mktemp -d "${TMPDIR:-/var/tmp}/kjv-test.XXXXXX")
cp db/kjv.db "$dir/kjv.db"
bin/kjv-api import-assets -db "$dir/kjv.db" assets
echo "test database: $dir/kjv.db"
exec bin/kjv-api -db "$dir/kjv.db" -addr 127.0.0.1:1612
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
# Runs the built program on localhost port 1611, building dist/ first if needed.
# (The user service, dist/kjv-api.service, runs a copy in ~/kjv-api on port 1611 instead.)
cd "$(dirname "$0")/.." || exit 1
[ -f dist/kjv-api ] && [ -f dist/kjv.db ] || make dist || exit 1
exec dist/kjv-api -db dist/kjv.db -addr 127.0.0.1:1611