-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
37 lines (29 loc) · 799 Bytes
/
Copy pathjustfile
File metadata and controls
37 lines (29 loc) · 799 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
27
28
29
30
31
32
33
34
35
36
37
# Development (uses docker-compose.override.yml automatically)
dev:
docker compose up -d --build
# Production deploy
deploy:
git pull --recurse-submodules
git submodule update --init
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --build
# Stop containers
down:
docker compose down
# View logs
logs:
docker compose logs -f rust-chess
# Rebuild without cache
rebuild:
docker compose build --no-cache
# Production rebuild
rebuild-prod:
docker compose -f docker-compose.yml -f docker-compose.prod.yml build --no-cache
# Shell into container
shell:
docker compose exec rust-chess /bin/sh
# Build web frontend locally
build-web:
cd web-app && pnpm build
# Run server locally (no docker)
run:
cargo run --release --bin web_server