feat: add embedded svelte frontend
This commit is contained in:
@@ -2,4 +2,11 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
go run ./cmd/amcs-server --config "${1:-configs/dev.yaml}"
|
||||
CONFIG_PATH="${1:-configs/dev.yaml}"
|
||||
|
||||
if [[ ! -f internal/app/ui/dist/index.html ]]; then
|
||||
echo "UI build not found; building frontend first..."
|
||||
make ui-build
|
||||
fi
|
||||
|
||||
go run ./cmd/amcs-server --config "$CONFIG_PATH"
|
||||
|
||||
Reference in New Issue
Block a user