-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
99 lines (64 loc) · 2.67 KB
/
Makefile
File metadata and controls
99 lines (64 loc) · 2.67 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
DC = docker compose
DC_DEV = docker compose -f docker-compose.dev.yml
# ── Stack (dev) ───────────────────────────────────────────────
up:
$(DC_DEV) up -d
down:
$(DC_DEV) down
ps:
$(DC_DEV) ps
build:
$(DC_DEV) up -d --build
logs:
$(DC_DEV) logs -f
# ── Stack (prod) ──────────────────────────────────────────────
prod-up:
$(DC) up -d
prod-down:
$(DC) down
prod-build:
$(DC) build app frontend && $(DC) up -d app frontend
prod-build-fe:
$(DC) build frontend && $(DC) up -d frontend
prod-build-app:
$(DC) build app && $(DC) up -d app
# ── App ───────────────────────────────────────────────────────
app-build:
$(DC) build app --no-cache && $(DC_DEV) up -d app
app-restart:
$(DC_DEV) restart app
app-logs:
$(DC_DEV) logs app -f
app-bash:
$(DC_DEV) exec app bash
run:
wippy run -c
# ── Frontend ──────────────────────────────────────────────────
fe-build:
cd frontend && rm -rf .nuxt .output && npm run build
fe-run:
cd frontend && npm run dev
fe-logs:
$(DC_DEV) logs frontend -f
# ── Telegram ─────────────────────────────────────────────────
tg-webhook:
$(DC_DEV) exec app wippy run register-webhook --host mcp:terminal
# ── Temporal ──────────────────────────────────────────────────
temporal-run:
temporal server start-dev
temporal-logs:
$(DC_DEV) logs temporal -f
temporal:
$(DC_DEV) exec temporal temporal $(filter-out $@,$(MAKECMDGOALS)) --address temporal:7233
# ── Billing ──────────────────────────────────────────────────
sync-plans:
$(DC_DEV) exec app wippy run sync-plans --host app:terminal
sync-subscriptions:
$(DC_DEV) exec app wippy run sync-subscriptions --host app:terminal
# ── Database ──────────────────────────────────────────────────
db-logs:
$(DC_DEV) logs postgres -f
db-shell:
$(DC_DEV) exec postgres psql -U homestead -d app
sql:
$(DC_DEV) exec -T postgres psql -U homestead -d app -c "$(filter-out $@,$(MAKECMDGOALS))"