-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (22 loc) · 721 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (22 loc) · 721 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
## up: executes the application using docker-compose
up:
docker compose up
## down: deletes docker containers
down:
docker compose down
## build-images: build docker images
build-images:
docker compose build
## build: statically build frontend and backend
build:
cargo build --bin backend --release
RUSTFLAGS=--cfg=web_sys_unstable_apis trunk build --release
## dev: creates nats and postgres container; executes backend and frontend locally
dev:
cargo watch -wq backend/ -w common -x "cargo run --bin backend" &
RUSTFLAGS=--cfg=web_sys_unstable_apis trunk serve
.PHONY: help
## help: prints this help message
help:
@echo "Usage: "
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'