mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
feat/wakatime integration- #249 plus tools/reference_stack_compose with wakapi
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
# up_wakapi.sh — start/re-warm only the wakapi pair (hot-stack tooling:
|
||||
# expects overleaf to be running for the IP pin). Same trigger-safe cycle as
|
||||
# up.sh: preflight drop -> up -> apply.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
docker compose up -d wakapi-pg
|
||||
bash 0_ensure_local_auth_type.sh preflight
|
||||
|
||||
ip="$(docker inspect -f '{{(index .NetworkSettings.Networks "overleaf-network").IPAddress}}' overleaf)"
|
||||
grep -q '^OVERLEAF_IP=' .env && sed -i "s/^OVERLEAF_IP=.*/OVERLEAF_IP=$ip/" .env || echo "OVERLEAF_IP=$ip" >> .env
|
||||
echo "pinned OVERLEAF_IP=$ip"
|
||||
|
||||
docker compose up -d wakapi
|
||||
bash 0_ensure_local_auth_type.sh apply
|
||||
Reference in New Issue
Block a user