-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
36 lines (29 loc) · 1017 Bytes
/
Makefile
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
include .env
.PHONY: rebuild-client-for-release rebuild-server-for-release rebuild-docker-image run-standalone
run-debug-client:
( cd client-v2 && \
PHOTO_PREFIX=http://localhost:8000/photos \
SOUND_PREFIX=http://localhost:8000/sounds \
URL_PREFIX=http://localhost:8000/api \
trunk serve )
run-standalone:
( cargo run --manifest-path server/Cargo.toml \
--bin simples -- \
-p ${PUBLIC_PORT} \
-v ./server/photos:photos \
-v ./server/sounds:sounds \
-v ./client-v2/release: \
--sedes ${SEDES}: \
--secret ${SECRET} ${BOCA_URL} \
)
rebuild-client-for-release:
@echo recompiling client...
( cd client-v2 && trunk build --release -d release )
rebuild-server-for-release:
@echo recompiling server...
( cd server && cargo build --release --target x86_64-unknown-linux-musl --features vendored )
rebuild-docker-image: rebuild-server-for-release rebuild-client-for-release
@echo rebuild docker image
docker compose build
republish-docker-image: rebuild-docker-image
docker compose push