schon/scripts/Unix/reboot.sh
Egor fureunoir Gorbunov 0a375ad0d1 Features: 1) Add brand_name and category_name fields to ProductDocument for enhanced search indexing; 2) Introduce expanded ICU-based analyzers for multi-language support, including Arabic, Indic, and CJK; 3) Enable search enhancements with revised weights in SMART_FIELDS and additional language-specific query mappings.
Fixes: 1) Correct typo in total_orders field name in ProductDocument; 2) Replace outdated query_lc analyzer with icu_query for consistent Unicode handling; 3) Remove unnecessary get_object_or_404 calls to optimize batch query performance.

Extra: Refactor process_query function with clearer structure and batch-loading logic; streamline brand and category field handling across documents; improve reboot scripts to rebuild search index automatically.
2025-08-20 05:36:55 +03:00

34 lines
1 KiB
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
source ./scripts/Unix/starter.sh
echo "Shutting down..."
docker compose down
echo "Services were shut down successfully!"
echo "Spinning services up..."
docker compose up -d --build --wait
echo "Services are up and healthy!"
echo "Applying migrations..."
docker compose exec app poetry run python manage.py migrate --no-input --verbosity 0
echo "Migrations applied successfully!"
echo "Collecting static files..."
docker compose exec app poetry run python manage.py collectstatic --clear --no-input --verbosity 0
echo "Static files collected successfully!"
echo "Setting default caches..."
docker compose exec app poetry run python manage.py set_default_caches
echo "Default caches set successfully!"
echo "Building search Index..."
docker compose exec app poetry run python manage.py search_index --rebuild -f
echo "Search Index built successfully!"
echo "Cleaning up unused Docker data..."
docker system prune -f
echo "Unused Docker data cleaned successfully!"
echo "All done! eVibes is up and running!"