Files
snek/Makefile
T
retoor ca5490d558 feat: add make dump target and dump script for exporting public channels with messages
Introduce a new `dump` make target that invokes `snek.dump` module, and implement the `dump_public_channels` function which iterates over non-private, listed channels, collects their metadata and associated messages, and outputs the result as formatted JSON to stdout.
2025-03-17 23:46:32 +00:00

23 lines
376 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 -m venv .venv
$(PIP) install -e .