2024-12-17 21:49:51 +00:00
|
|
|
BIN = ./.venv/bin/
|
|
|
|
PYTHON = ./.venv/bin/python
|
|
|
|
PIP = ./.venv/bin/pip
|
|
|
|
APP_NAME=zamenyat
|
|
|
|
|
|
|
|
all: install build
|
|
|
|
|
|
|
|
ensure_repo:
|
|
|
|
-@git init
|
|
|
|
|
|
|
|
ensure_env: ensure_repo
|
|
|
|
-@python3 -m venv .venv
|
|
|
|
|
|
|
|
install: ensure_env
|
|
|
|
$(PIP) install -e .
|
|
|
|
|
|
|
|
format:
|
|
|
|
$(PIP) install shed
|
|
|
|
. $(BIN)/activate && shed
|
|
|
|
|
|
|
|
build:
|
|
|
|
$(MAKE) format
|
|
|
|
$(PIP) install build
|
|
|
|
$(PYTHON) -m build
|
|
|
|
|
|
|
|
run:
|
2024-12-29 20:05:43 +00:00
|
|
|
$(BIN)$(APP_NAME) --host="0.0.0.0" --port=3046 --upstream-host="localhost" --upstream-port=8082
|
|
|
|
run2:
|
|
|
|
$(BIN)$(APP_NAME) --host="0.0.0.0" --port=3046 --upstream-host="localhost" --upstream-port=9999
|
|
|
|
|
2024-12-17 21:49:51 +00:00
|
|
|
|
|
|
|
|