forked from pi-node/pi-node
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (45 loc) · 1.12 KB
/
Makefile
File metadata and controls
56 lines (45 loc) · 1.12 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
# Pi Supernode V20 - Production Makefile
.PHONY: all build test clean docker dev prod keygen
# Default
all: build test
# Build Release
build:
cargo build --release --all-features
@echo "✅ Build complete: target/release/pi-supernode"
# Full Test Suite
test:
cargo test --all-features
cargo bench
@echo "✅ All tests passed"
# Docker Production
docker:
docker-compose build --no-cache
docker-compose up -d
@echo "✅ Docker deployed: http://localhost:31401"
# Development Mode
dev:
cargo watch -x check -x test -x 'run --bin pi-supernode'
# Production Deploy
prod:
make clean
cargo build --release --all-features
docker-compose -f docker-compose.prod.yml up -d --build
@echo "✅ Production deployed"
# Keygen
keygen:
cargo run --bin pi-keygen -- --wallet > .env.local
@echo "✅ Keys generated in .env.local"
# Metrics Endpoint
metrics:
curl http://localhost:9090/metrics
# Clean
clean:
cargo clean
docker-compose down -v
rm -rf target/ data/ logs/
# Explorer
explorer:
cd frontend/explorer && npm install && npm run dev
# Complete Setup
setup: keygen build docker
@sleep 5 && curl http://localhost:31401/health