Fixes: 1) Correct entrypoint scripts by removing redundant `python` reference in `uv run` commands; 2) Resolve incorrect imports and adjust class renaming in vibes_auth tests; 3) Address typing errors and minor omissions in existing code. Extra: 1) Improve formatting in settings and middleware files; 2) Update messaging test class names for clarity; 3) Cleanup unused imports and extra whitespaces, ensuring cleaner codebase.
54 lines
1.5 KiB
PowerShell
54 lines
1.5 KiB
PowerShell
Set-StrictMode -Version Latest
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
.\scripts\Windows\starter.ps1
|
|
if ($LASTEXITCODE -ne 0) {
|
|
exit $LASTEXITCODE
|
|
}
|
|
|
|
|
|
Write-Host "Shutting down..." -ForegroundColor Magenta
|
|
docker compose down
|
|
if ($LASTEXITCODE -ne 0) {
|
|
exit $LASTEXITCODE
|
|
}
|
|
Write-Host "Services were shut down successfully!" -ForegroundColor Green
|
|
|
|
Write-Host "Spinning services up..." -ForegroundColor Magenta
|
|
docker compose up -d --build --wait
|
|
if ($LASTEXITCODE -ne 0) {
|
|
exit $LASTEXITCODE
|
|
}
|
|
Write-Host "Services are up and healthy!" -ForegroundColor Green
|
|
|
|
Write-Host "Completing pre-run tasks..." -ForegroundColor Magenta
|
|
docker compose exec app uv run manage.py migrate --no-input
|
|
if ($LASTEXITCODE -ne 0) {
|
|
exit $LASTEXITCODE
|
|
}
|
|
docker compose exec app uv run manage.py initialize
|
|
if ($LASTEXITCODE -ne 0) {
|
|
exit $LASTEXITCODE
|
|
}
|
|
docker compose exec app uv run manage.py set_default_caches
|
|
if ($LASTEXITCODE -ne 0) {
|
|
exit $LASTEXITCODE
|
|
}
|
|
docker compose exec app uv run manage.py search_index --rebuild -f
|
|
if ($LASTEXITCODE -ne 0) {
|
|
exit $LASTEXITCODE
|
|
}
|
|
docker compose exec app uv run manage.py collectstatic --clear --no-input
|
|
if ($LASTEXITCODE -ne 0) {
|
|
exit $LASTEXITCODE
|
|
}
|
|
Write-Host "Pre-run tasks completed successfully!" -ForegroundColor Green
|
|
|
|
Write-Host "Cleaning up unused Docker data..." -ForegroundColor Magenta
|
|
docker system prune -f
|
|
if ($LASTEXITCODE -ne 0) {
|
|
exit $LASTEXITCODE
|
|
}
|
|
Write-Host "Unused Docker data cleaned successfully!" -ForegroundColor Green
|
|
|
|
Write-Host "All done! eVibes is up and running!" -ForegroundColor Cyan
|