Files
snek/Makefile
T
retoor 3623ec13b4 feat: add drive view with extension-based categorization and async terminal process management
- Register DriveView at /drive.json and /drive/{drive}.json endpoints in app router
- Add DriveModel.name field and async items property yielding drive items
- Add DriveItemModel.extension and mime_type properties using mimetypes
- Implement DriveService.get_drive_name_by_extension and get_drive_by_extension for automatic drive categorization
- Store file extension in DriveItemService during item creation
- Refactor TerminalSession to use async subprocess with lazy process initialization and multi-socket output buffering
- Move database preparation and service initialization to async startup hook with await on drive.prepare_all
2025-03-23 12:57:20 +00:00

23 lines
380 B
Makefile

PYTHON=./.venv/bin/python
PIP=./.venv/bin/pip
APP=./.venv/bin/snek.serve
GUNICORN=./.venv/bin/gunicorn
GUNICORN_WORKERS = 1
PORT = 8081
python:
$(PYTHON)
dump:
@$(PYTHON) -m snek.dump
run:
$(GUNICORN) -w $(GUNICORN_WORKERS) -k aiohttp.worker.GunicornWebWorker snek.gunicorn:app --bind 0.0.0.0:$(PORT) --reload
install:
python3.12 -m venv .venv
$(PIP) install -e .