forked from security-union/videocall-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
21 lines (17 loc) · 936 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
test:
docker compose -f docker/docker-compose.yaml run yew-ui bash -c "cd app/yew-ui && cargo test"
docker compose -f docker/docker-compose.yaml run actix-api bash -c "cd app/actix-api && cargo test"
up:
docker compose -f docker/docker-compose.yaml up
down:
docker compose -f docker/docker-compose.yaml down
build:
docker compose -f docker/docker-compose.yaml build
connect_to_db:
docker compose -f docker/docker-compose.yaml run postgres bash -c "psql -h postgres -d actix-api-db -U postgres"
clippy-fix:
docker compose -f docker/docker-compose.yaml run yew-ui bash -c "cd app/yew-ui && cargo clippy --fix"
docker compose -f docker/docker-compose.yaml run actix-api bash -c "cd app/actix-api && cargo clippy --fix"
fmt:
docker compose -f docker/docker-compose.yaml run yew-ui bash -c "cd app/yew-ui && cargo fmt"
docker compose -f docker/docker-compose.yaml run actix-api bash -c "cd app/actix-api && cargo fmt"