Files
photos.kennethreitz.org/Makefile
T
kennethreitz 9507fe901c Add photo manager, folder importer, Postgres Celery broker, UI polish
- Photo manager (/manage/) with multi-select, bulk visibility/delete,
  faceted filtering by camera/lens/year, add-to-collection with inline
  creation
- import_folder management command with concurrent workers
- Use Postgres as Celery broker in production (no Redis needed on Fly)
- Add Celery worker process to fly.toml
- Thread fallback for image processing when Celery unavailable
- Collection list with image preview cards
- CSS cache-busting via content hash
- Fix empty UUID validation errors in bulk actions
- Makefile: remove redis start/stop (now a brew service)
- Switch to ManifestStaticFilesStorage for production

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 15:02:49 -04:00

32 lines
709 B
Makefile

.PHONY: sync run migrate makemigrations bolt db worker
include .env
export
sync:
uv sync
run: sync
fly proxy 5432 -a exiftree-db &
uv run celery -A exiftree worker -l info -c 2 --detach --pidfile /tmp/exiftree-celery.pid 2>/dev/null || true
sleep 1
uv run python manage.py collectstatic --noinput 2>/dev/null
uv run python manage.py runbolt --dev
kill $$(cat /tmp/exiftree-celery.pid 2>/dev/null) 2>/dev/null || true
kill %1 2>/dev/null || true
bolt: sync
uv run python manage.py runbolt --dev
migrate: sync
uv run python manage.py migrate
makemigrations: sync
uv run python manage.py makemigrations
db:
fly proxy 5432 -a exiftree-db
worker: sync
uv run celery -A exiftree worker -l info