From e7ba7dde0fc5d0f7dfc48a48aa3d15a76e33ff56 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Mon, 16 Jun 2025 14:09:37 +0300 Subject: [PATCH] Features: 1) Update reboot script to improve readability in service status messages; 2) Specify application name as "eVibes" in final confirmation message; Fixes: 1) Standardize spacing in spinner commands for consistency; 2) Correct alignment of service lifecycle commands; Extra: Adjust wording for better clarity and uniformity in reboot.sh script. --- scripts/Unix/export-environment-file.sh | 0 scripts/Unix/generate-environment-file.sh | 0 scripts/Unix/install.sh | 0 scripts/Unix/reboot.sh | 12 ++++++------ scripts/Unix/run.sh | 0 5 files changed, 6 insertions(+), 6 deletions(-) mode change 100644 => 100755 scripts/Unix/export-environment-file.sh mode change 100644 => 100755 scripts/Unix/generate-environment-file.sh mode change 100644 => 100755 scripts/Unix/install.sh mode change 100644 => 100755 scripts/Unix/run.sh diff --git a/scripts/Unix/export-environment-file.sh b/scripts/Unix/export-environment-file.sh old mode 100644 new mode 100755 diff --git a/scripts/Unix/generate-environment-file.sh b/scripts/Unix/generate-environment-file.sh old mode 100644 new mode 100755 diff --git a/scripts/Unix/install.sh b/scripts/Unix/install.sh old mode 100644 new mode 100755 diff --git a/scripts/Unix/reboot.sh b/scripts/Unix/reboot.sh index c73934b7..21320ebd 100755 --- a/scripts/Unix/reboot.sh +++ b/scripts/Unix/reboot.sh @@ -29,11 +29,11 @@ run_with_spinner() { } echo -run_with_spinner "docker compose down --ansi never" "Stopping services (down)" -run_with_spinner "docker compose up -d --build --ansi never" "Rebuilding & starting services" -run_with_spinner "docker compose exec app poetry run python manage.py migrate --no-input" "Applying database migrations" +run_with_spinner "docker compose --ansi never down" "Stopping services" +run_with_spinner "docker compose --ansi never up -d --build" "Rebuilding & starting services" +run_with_spinner "docker compose exec app poetry run python manage.py migrate --no-input" "Applying database migrations" run_with_spinner "docker compose exec app poetry run python manage.py collectstatic --no-input" "Collecting static files" -run_with_spinner "docker compose exec app poetry run python manage.py set_default_caches" "Setting default caches" -run_with_spinner "docker system prune -f" "Cleaning up unused Docker data" +run_with_spinner "docker compose exec app poetry run python manage.py set_default_caches" "Setting default caches" +run_with_spinner "docker system prune -f" "Cleaning up unused Docker data" -echo -e "\e[1mAll done! Your application is up and running.\e[0m" +echo -e "\e[1mAll done! eVibes is up and running.\e[0m" diff --git a/scripts/Unix/run.sh b/scripts/Unix/run.sh old mode 100644 new mode 100755