Features: 1) Add --clear option to collectstatic commands in Unix and Windows scripts for efficient static file cleanup;
Fixes: None; Extra: None;
This commit is contained in:
parent
f9620ed339
commit
e8f2b75de7
4 changed files with 4 additions and 4 deletions
|
|
@ -16,7 +16,7 @@ docker compose exec app poetry run python manage.py migrate --no-input --verbosi
|
|||
echo "Migrations applied successfully!"
|
||||
|
||||
echo "Collecting static files..."
|
||||
docker compose exec app poetry run python manage.py collectstatic --no-input --verbosity 0
|
||||
docker compose exec app poetry run python manage.py collectstatic --clear --no-input --verbosity 0
|
||||
echo "Static files collected successfully!"
|
||||
|
||||
echo "Setting default caches..."
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ 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
|
||||
docker compose exec app poetry run python manage.py collectstatic --clear --no-input
|
||||
echo "Static files collected successfully!"
|
||||
|
||||
echo "Setting default caches…"
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ docker compose exec app poetry run python manage.py migrate --no-input --verbosi
|
|||
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 --verbosity 0
|
||||
docker compose exec app poetry run python manage.py collectstatic --clear --no-input --verbosity 0
|
||||
Write-Host "Static files collected successfully!" -ForegroundColor Green
|
||||
|
||||
Write-Host "Setting default caches..." -ForegroundColor Magenta
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ docker compose exec app poetry run python manage.py migrate --no-input
|
|||
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 --clear --no-input
|
||||
Write-Host "Static files collected successfully!" -ForegroundColor Green
|
||||
|
||||
Write-Host "Setting default caches..." -ForegroundColor Magenta
|
||||
|
|
|
|||
Loading…
Reference in a new issue