-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (42 loc) · 1.14 KB
/
Makefile
File metadata and controls
61 lines (42 loc) · 1.14 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
all: format lint_tests unit_tests
format:
ruff check --fix ./
ruff format ./
lint_tests:
ruff check src tests
unit_tests:
coverage run -m --source src pytest --durations=0 ./tests
coverage report -m
coverage xml
docker-run:
source .env && \
uv pip compile pyproject.toml -o requirements.txt && \
docker-compose up --build
docker-build:
source .env && \
uv pip compile pyproject.toml -o requirements.txt && \
docker-compose build
docker-bash:
docker-compose run strava bash
docker-dev:
docker-compose run strava fastapi dev ./src/app.py --reload --host 0.0.0.0 --port 8000
deploy:
uv run python cicd/deploy/modify_pyproject_toml.py
bash ./cicd/deploy/deploy.sh
git checkout pyproject.toml
app:
uv run --frozen fastapi run ./src/app/main.py
start:
sudo systemctl start neuraltag.service
stop:
sudo systemctl stop neuraltag.service
restart:
sudo systemctl restart neuraltag.service
status:
sudo systemctl status neuraltag.service
logs:
journalctl -u neuraltag.service -f -n 300
alembic-revision:
cd src/database/ && alembic revision --autogenerate -m "current state"
alembic-upgrade:
cd src/database/ && alembic upgrade head