-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 684 Bytes
/
Makefile
File metadata and controls
38 lines (28 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
NODE=node
PY=python
ifeq ($(OS),Windows_NT)
PY="venv/Scripts/python"
else
PY="venv/bin/python"
endif
all: build
init: venv package.json package-lock.json requirements.txt
npm ci
@$(PY) -m pip install --upgrade pip
@$(PY) -m pip install -r requirements.txt
build:
@$(NODE) build.mjs
run: build
@$(PY) -m uvicorn --reload src.main:app --host 0.0.0.0 --port 8000
run_debug: build
@start npx weinre --boundHost 0.0.0.0 &
@set REMOTE_DEBUG_WEINRE=1 & $(PY) -m uvicorn --reload src.main:app --host 0.0.0.0 --port 8000
check:
ruff check
venv:
python -m venv venv
# Docker commands
docker:
docker build -t chessmath .
docker_run:
docker run -p 8000:8000 chessmath