mirror of
https://github.com/skilfoy/ARTEX-English.git
synced 2026-12-03 13:11:02 +00:00
Rewrite broken comments and user-facing messages in the root build, dev, and password-reset scripts.
23 lines
892 B
Bash
Executable file
23 lines
892 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Development mode: backend (:8787) + traffic proxy (:8788) and the frontend
|
|
# next dev server (:5173) run together.
|
|
# The frontend proxies /api to the backend; Ctrl-C stops both.
|
|
#
|
|
# The single binary (frontend embedded) is described in the README "Single binary"
|
|
# section and does not use this script.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
|
|
# On exit, stop every child in this process group (backend + frontend).
|
|
cleanup() { kill 0 2>/dev/null || true; }
|
|
trap cleanup EXIT INT TERM
|
|
|
|
# Backend via a normal go run, without the embedded frontend. The number of
|
|
# concurrent work agents is set under System Settings.
|
|
go run ./cmd/artex -addr :8787 -proxy 127.0.0.1:8788 &
|
|
|
|
# Frontend hot reload (Vite/Next dev server; /api is proxied to :8787).
|
|
( cd web && npm run dev ) &
|
|
|
|
echo "[dev] backend :8787 / proxy :8788 / frontend http://localhost:5173 (Ctrl-C to exit)"
|
|
wait
|