-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakeFile
More file actions
48 lines (37 loc) · 1.63 KB
/
Copy pathMakeFile
File metadata and controls
48 lines (37 loc) · 1.63 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
run-diff:
@read -p "Введите путь к проекту: " PROJECT; \
echo "Используем проект: $$PROJECT"; \
git -C $$PROJECT diff dev $$(git -C $$PROJECT branch --show-current) | \
go run cmd/agent/main.go
run-diff1:
@read -p "WSL project path: " PROJECT; \
ssh work-wsl-linux "git -C $$PROJECT diff origin/dev...\$$(git -C $$PROJECT branch --show-current)"
# Укажи WSL проект
WSL_PROJECT_CRM=/home/malinovskiy.t/GolandProjects/crm-backend
WSL_PROJECT_CABINET=/home/malinovskiyt/projects/WB/cabinet-backend
WSL_PROJECT_NS=/home/malinovskiyt/projects/WB/notification-service
# Defaults for local Postgres (can be overridden via env)
POSTGRES_HOST ?= localhost
POSTGRES_PORT ?= 5432
POSTGRES_DB ?= simpleai
POSTGRES_USER ?= simpleai
POSTGRES_PASSWORD ?= simpleai
run-diff-wsl:
@echo "Получаем diff из WSL..."
ssh work-wsl-linux "git -C $(WSL_PROJECT_CRM) diff origin/dev...\$$(git -C $(WSL_PROJECT_CRM) branch --show-current)" | \
go run cmd/agent/main.go
db-up:
docker compose up -d
migrate-up:
goose -dir internal/db/migrations postgres "postgres://$(POSTGRES_USER):$(POSTGRES_PASSWORD)@$(POSTGRES_HOST):$(POSTGRES_PORT)/$(POSTGRES_DB)?sslmode=disable" up
migrate-down:
goose -dir internal/db/migrations postgres "postgres://$(POSTGRES_USER):$(POSTGRES_PASSWORD)@$(POSTGRES_HOST):$(POSTGRES_PORT)/$(POSTGRES_DB)?sslmode=disable" down
run-all:
go run ./cmd/app
run-mcp:
go run ./cmd/mcp
lint:
golangci-lint run
# Обновить локальную read-only реплику боевой БД (прод не мутируется, только pg_dump).
refresh-replica:
bash scripts/refresh-replica.sh