generate TYPESENSE_API_KEY
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user