schon/scripts/Unix/run.sh
Egor fureunoir Gorbunov b92e7e28f1 Features: 1) Add new email content translations for ru_RU, zh_Hans, and ro_RO locales; 2) Update "balance deposit" and general email-related translations across multiple languages;
Fixes: 1) Correct inconsistent formatting in translation strings; 2) Fix placeholders in email templates for better accuracy;

Extra: Update `.gitignore` to include `.env` file exclusion.
2025-06-22 20:18:19 +03:00

36 lines
1.1 KiB
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
source ./scripts/Unix/starter.sh
echo "Verifying all images are present…"
images=$(docker compose config --format json | jq -r '.services[].image // empty')
for image in $images; do
if ! docker image inspect "$image" > /dev/null 2>&1; then
echo "Required images not found. Please run install.sh first." >&2
exit 1
fi
echo " • Found image: $image"
done
echo "Spinning services up…"
docker compose up --no-build --detach --wait
echo "Services are up and healthy!"
echo "Applying migrations…"
docker compose exec app poetry run python manage.py migrate --no-input
echo "Migrations applied successfully!"
echo "Collecting static files…"
docker compose exec app poetry run python manage.py collectstatic --no-input
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 "Cleaning unused Docker data…"
docker system prune -f
echo "Unused Docker data cleaned successfully!"
echo "All done! eVibes is up and running!"