generate TYPESENSE_API_KEY

This commit is contained in:
2026-02-07 20:59:02 +01:00
parent af81fb3159
commit 08ced1e938
11 changed files with 236 additions and 15 deletions
+3 -10
View File
@@ -5,17 +5,10 @@ FRONTEND_DIR=/app
APP_DIR=/var/www/app
PUBLIC_DIR="$APP_DIR/public"
GIT_URL="https://oauth2:${GIT_TOKEN}@${FRONTEND_GIT_REPO}"
PHP_HOST="app-php"
PHP_PORT=9000
MAX_WAIT=300
WAITED=0
while [ ! -f "$APP_DIR/composer.json" ] || [ ! -d "$APP_DIR/vendor" ] || [ ! -f "$APP_DIR/public/index.php" ]; do
if [ $WAITED -ge $MAX_WAIT ]; then
exit 1
fi
sleep 3
WAITED=$((WAITED + 3))
done
/usr/local/bin/wait-for-it.sh "$PHP_HOST:$PHP_PORT" -t 300
if [ ! -d "$FRONTEND_DIR/.git" ]; then
git clone -b "${FRONTEND_GIT_BRANCH:-main}" "$GIT_URL" "$FRONTEND_DIR"