forked from rcourtman/Pulse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 816 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (28 loc) · 816 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
# Pulse Makefile for development
.PHONY: build run dev frontend backend all clean
# Build everything
all: frontend backend
# Build frontend only
frontend:
cd frontend-modern && npm run build
rm -rf internal/api/frontend-modern/dist
cp -r frontend-modern/dist internal/api/frontend-modern/
# Build backend only (includes embedded frontend)
backend:
go build -o pulse ./cmd/pulse
# Build both and run
build: frontend backend
# Run the built binary
run: build
./pulse
# Development - rebuild everything and restart service
dev: frontend backend
sudo systemctl restart pulse-backend
# Clean build artifacts
clean:
rm -f pulse
rm -rf frontend-modern/dist
rm -rf internal/api/frontend-modern/dist
# Quick rebuild and restart for development
restart: frontend backend
sudo systemctl restart pulse-backend