-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
53 lines (42 loc) · 1018 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
42
43
44
45
46
47
48
49
50
51
52
53
install-deps:
@echo "Installing dependencies"
cargo install
install-cargo-watch:
@echo "Installing cargo-watch..."
cargo install cargo-watch
start-db:
@echo "Starting database"
docker compose -f dev/docker-compose.yaml up -d db
build:
@echo "Building application"
cargo build
run:
@echo "Running application"
cargo run
stop-db:
@echo "Stopping database"
docker compose -f dev/docker-compose.yaml down
start-prod:
@echo "Starting production server"
cargo run --release
start-everything:
@echo "Starting everything"
just start-db
sleep 5
just run
start-everything-prod:
@echo "Starting everything in production"
just start-db
sleep 5
just start-prod
generate-migration:
@echo "Generating migration"
just start-db
sleep 5
diesel migration run
run-compose:
@echo "Running docker compose"
docker compose -f docker-compose.yaml up -d
watch:
@echo "Starting live reload..."
cargo watch -x 'run'