-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 1.05 KB
/
Makefile
File metadata and controls
35 lines (25 loc) · 1.05 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
.PHONY: all backend backend-setup web web-build voice voice-build voice-run voice-gdb voice-test-server
all: backend-setup web-build voice-build
backend:
backend/.venv/bin/uvicorn backend.main:app --reload --host 127.0.0.1 --port 8009
backend-setup:
python3 -m venv backend/.venv
backend/.venv/bin/pip install -r backend/requirements.txt
web:
cd web && npm run dev
web-build:
npm --prefix web ci
npm --prefix web run build
voice:
cd voice-service && $$HOME/.cargo/bin/cargo build
voice-build: voice
voice-run:
TSBOT_TS3_IDENTITY_FILE="$${TSBOT_TS3_IDENTITY_FILE:-$(CURDIR)/logs/identity.json}" \
cd voice-service && $$HOME/.cargo/bin/cargo run -- 127.0.0.1:50051
voice-gdb:
cd voice-service && $$HOME/.cargo/bin/cargo build
TSBOT_TS3_IDENTITY_FILE="$${TSBOT_TS3_IDENTITY_FILE:-$(CURDIR)/logs/identity.json}" \
gdb --args voice-service/target/debug/voice-service 127.0.0.1:50051
voice-test-server:
TSBOT_TS3_IDENTITY_FILE="$${TSBOT_TS3_IDENTITY_FILE:-$(CURDIR)/logs/identity.json}" \
cd voice-service && $$HOME/.cargo/bin/cargo run -- 127.0.0.1:50051