OXYGENHUB
# 99ca93d60bca oxygenhub / Makefile
682 B · Makefile · last changed Milestone 0.1: browse 1 month ago source blame history raw
1
.PHONY: build check test fmt clippy run deploy
2
3
build:
4
	cargo build --release
5
6
check: fmt clippy test
7
8
fmt:
9
	cargo fmt --all -- --check
10
11
clippy:
12
	cargo clippy --workspace --all-targets -- -D warnings
13
14
test:
15
	cargo test --workspace
16
17
run:
18
	cargo run -- --data data serve
19
20
# Developer edition on Earth (docs/deploy.md).
21
deploy:
22
	rsync -a --delete --exclude target --exclude node_modules --exclude .oxy/objects/loose ../oxygen ../oxygenhub claude@earth:src/
23
	ssh claude@earth 'source ~/.cargo/env && cd src/oxygenhub && cargo build --release && sudo install -m 0755 target/release/oxygenhub /usr/local/bin/oxygenhub && sudo systemctl restart oxygenhub && systemctl is-active oxygenhub'