26 lines
439 B
Makefile
Raw Normal View History

2025-01-17 23:06:17 +01:00
PYTHON=./.venv/bin/python
PIP=./.venv/bin/pip
2025-01-18 13:21:38 +01:00
APP=./.venv/bin/snek.serve
GUNICORN=./.venv/bin/gunicorn
GUNICORN_WORKERS = 1
2025-01-17 23:06:17 +01:00
PORT = 8081
2025-02-26 00:22:36 +01:00
python:
$(PYTHON)
2025-01-17 23:06:17 +01:00
2025-03-18 00:46:32 +01:00
dump:
2025-03-18 01:13:25 +01:00
@$(PYTHON) -m snek.dump
2025-03-18 00:46:32 +01:00
2025-03-28 02:41:57 +01:00
build:
2025-02-26 00:22:36 +01:00
run:
$(GUNICORN) -w $(GUNICORN_WORKERS) -k aiohttp.worker.GunicornWebWorker snek.gunicorn:app --bind 0.0.0.0:$(PORT) --reload
2025-01-17 23:06:17 +01:00
install:
2025-03-23 13:57:20 +01:00
python3.12 -m venv .venv
2025-01-17 23:06:17 +01:00
$(PIP) install -e .
2025-03-28 02:41:57 +01:00
docker build -f DockerfileUbuntu -t snek_ubuntu .
2025-01-24 03:28:43 +01:00