-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
41 lines (31 loc) · 818 Bytes
/
justfile
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
38
39
40
41
project_name := "orchestra"
default:
@just --list
[doc('Build binary with debug')]
build:
cargo build
[doc('Build releasing binary')]
build-release:
cargo build --release
[doc('Run tests')]
test:
cargo test
[doc('Check for linting errors')]
lint:
cargo clippy
[doc('Format code')]
format:
cargo fmt
[doc('Start server for development in watch mode')]
develop:
cargo watch -x "run --bin {{project_name}}"
[doc('Start database container for development')]
database:
cd {{justfile_directory()}}/docker; docker compose -f compose-dev.yml up -d
[doc('Stop and clean up database container')]
database-clean:
cd {{justfile_directory()}}/docker; docker compose -f compose-dev.yml down
[doc('Build production docker container for the project')]
docker:
nix build .#docker
./result | docker load