This commit is contained in:
2025-03-27 13:26:28 +00:00
parent 2037953000
commit 77cb64b260
1973 changed files with 3529 additions and 10479 deletions

21
scripts/reload-local-tibi.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/sh
# clear ssr cache
set -o allexport
SCRIPTDIR=$(dirname "$0")
source $SCRIPTDIR/../.env
set +o allexport
ssrUrl="https://${PROJECT_NAME}-tibiserver.code.testversion.online/api/v1/_/${TIBI_NAMESPACE}/ssr"
curl --silent -X POST -H "Content-Type: application/json" -d '{}' "${ssrUrl}?clear=1"
sleep 1
# restart tibiserver and tibiserver-dev (if exists)
docker compose -f docker-compose-local.yml restart tibiserver 2>&1
docker compose -f docker-compose-local.yml restart tibiserver-dev 2>&1
exit 0