Features: 1) Add verbosity option for manage.py migrate and collectstatic commands in reboot scripts;
Fixes: 1) Remove unused sniffer_timeout in Elasticsearch settings; Extra: 1) Minor adjustments to improve script output clarity.
This commit is contained in:
parent
ac7c71c4a1
commit
f090b2ddc9
3 changed files with 4 additions and 5 deletions
|
|
@ -11,7 +11,6 @@ ELASTICSEARCH_DSL = {
|
|||
"retry_on_timeout": True,
|
||||
"sniff_on_start": False,
|
||||
"sniff_on_connection_fail": False,
|
||||
"sniffer_timeout": None,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,10 +36,10 @@ printf "%bStarting services…%b\n" "$CYAN" "$RESET"
|
|||
docker compose up -d
|
||||
|
||||
printf "%bApplying database migrations…%b\n" "$CYAN" "$RESET"
|
||||
docker compose exec app poetry run python manage.py migrate --no-input
|
||||
docker compose exec app poetry run python manage.py migrate --no-input --verbosity 0
|
||||
|
||||
printf "%bCollecting static files…%b\n" "$CYAN" "$RESET"
|
||||
docker compose exec app poetry run python manage.py collectstatic --no-input
|
||||
docker compose exec app poetry run python manage.py collectstatic --no-input --verbosity 0
|
||||
|
||||
printf "%bSetting default caches…%b\n" "$CYAN" "$RESET"
|
||||
docker compose exec app poetry run python manage.py set_default_caches
|
||||
|
|
|
|||
|
|
@ -33,11 +33,11 @@ docker compose up -d --build --wait
|
|||
Write-Host "Services are up and healthy!" -ForegroundColor Green
|
||||
|
||||
Write-Host "Applying migrations..." -ForegroundColor Magenta
|
||||
docker compose exec app poetry run python manage.py migrate --no-input
|
||||
docker compose exec app poetry run python manage.py migrate --no-input --verbosity 0
|
||||
Write-Host "Migrations applied successfully!" -ForegroundColor Green
|
||||
|
||||
Write-Host "Collecting static files..." -ForegroundColor Magenta
|
||||
docker compose exec app poetry run python manage.py collectstatic --no-input
|
||||
docker compose exec app poetry run python manage.py collectstatic --no-input --verbosity 0
|
||||
Write-Host "Static files collected successfully!" -ForegroundColor Green
|
||||
|
||||
Write-Host "Setting default caches..." -ForegroundColor Magenta
|
||||
|
|
|
|||
Loading…
Reference in a new issue