mariomitte 61bc772054 fix: reduce memory usage for monthly ZIP archive flow
Replace generated archive download response with FileResponse streaming so ZIP files are not fully loaded into process memory.

Move monthly archive task output to a temporary file and upload that file to storage, and write invoice attachments into ZIP archives in chunks.

Add Celery memory guard settings, a memory-aware base task hook, and periodic /tmp cleanup for prefixed archive files older than one day.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-05 08:15:30 +02:00
2026-07-10 23:00:06 +02:00
2026-07-09 21:21:17 +02:00

Frontend + Backend + Database + Deployment

Deploy na serveru

Nakon što je gitea webhook i testirana skripta za automatsko povlačenje promjena iz repozitorija

cd /opt/erp/app
git fetch origin
git reset --hard origin/main ili git pull --ff-only origin main

# rebuild backend + worker + beat + frontend
docker compose -f docker-compose.yml -f docker-compose.prod.yml build backend worker beat frontend

# digni servise s novim image-ima
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --force-recreate backend worker beat frontend

# OBAVEZNO migracije (scheduled_date)
docker compose -f docker-compose.yml -f docker-compose.prod.yml exec backend python manage.py migrate

# provjera
curl -i https://api-004.captain.mitteworkspace.cloud/api/health/
Description
Astro ERP + Django DRF, Celery, Redis aplikacija za Knez Ljubo
Readme 4 MiB
Languages
Python 51%
JavaScript 47.1%
TypeScript 0.8%
Astro 0.6%
CSS 0.3%