feat: GuiPresence (chat-service presence backend, gateway route, mod module); restore TODO history
This commit is contained in:
parent
8d9a2ad0d6
commit
e82efb74e7
44 changed files with 2202 additions and 19 deletions
|
|
@ -3,7 +3,7 @@
|
|||
# poking and scripts/e2e.sh. Restarts them if they are already running.
|
||||
#
|
||||
# Prerequisites (one-time):
|
||||
# cargo build -p accounts-service -p configs-service -p gateway
|
||||
# cargo build -p accounts-service -p configs-service -p chat-service -p gateway
|
||||
# a Postgres with accounts_db + configs_db, and MinIO with the
|
||||
# lovisual-avatars-test bucket (see backend/PLAN.md, Task 2).
|
||||
# Dev-only secrets below are fine locally; production reads backend/.env.
|
||||
|
|
@ -25,21 +25,22 @@ export COOKIE_SECURE="false"
|
|||
# browser-facing avatar prefix served through the gateway (mirrors prod /api/media)
|
||||
export AVATAR_PUBLIC_BASE_URL="http://127.0.0.1:8080/media"
|
||||
|
||||
pkill -f 'target/debug/(accounts-service|configs-service|gateway)' 2>/dev/null || true
|
||||
pkill -f 'target/debug/(accounts-service|configs-service|chat-service|gateway)' 2>/dev/null || true
|
||||
sleep 1
|
||||
|
||||
PORT=8081 GRPC_PORT=50051 setsid nohup "$B/target/debug/accounts-service" >"$L/accounts.log" 2>&1 &
|
||||
CONFIGS_PORT=8082 setsid nohup "$B/target/debug/configs-service" >"$L/configs.log" 2>&1 &
|
||||
CHAT_PORT=8083 setsid nohup "$B/target/debug/chat-service" >"$L/chat.log" 2>&1 &
|
||||
GATEWAY_PORT=8080 ACCOUNTS_HTTP_URL="http://127.0.0.1:8081" \
|
||||
CONFIGS_HTTP_URL="http://127.0.0.1:8082" SITE_ORIGIN="http://localhost:5173" \
|
||||
CONFIGS_HTTP_URL="http://127.0.0.1:8082" CHAT_HTTP_URL="http://127.0.0.1:8083" SITE_ORIGIN="http://localhost:5173" \
|
||||
setsid nohup "$B/target/debug/gateway" >"$L/gateway.log" 2>&1 &
|
||||
|
||||
up() { [ "$(curl -sf "$1" 2>/dev/null || true)" = "ok" ]; }
|
||||
for i in $(seq 1 60); do
|
||||
up http://127.0.0.1:8081/health && up http://127.0.0.1:8082/health && up http://127.0.0.1:8080/health && break
|
||||
up http://127.0.0.1:8081/health && up http://127.0.0.1:8082/health && up http://127.0.0.1:8083/health && up http://127.0.0.1:8080/health && break
|
||||
sleep 0.5
|
||||
done
|
||||
for u in 8081 8082 8080; do
|
||||
for u in 8081 8082 8083 8080; do
|
||||
up "http://127.0.0.1:$u/health" || { echo "port $u did not come up"; tail -5 "$L"/*.log; exit 1; }
|
||||
done
|
||||
echo "accounts+configs+gateway up"
|
||||
echo "accounts+configs+chat+gateway up"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue