-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJustfile
35 lines (27 loc) · 838 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
set dotenv-load := true
# Run the application
run *args:
cargo run {{args}}
# Reset the database, then run the application
run-reset *args:
just reset
cargo run {{args}}
# Remove all data from the database, then run migrations
reset:
sqlx db reset -y
# Watch for something
# E.g. `just watch run --release` or `just watch test`
watch *args:
cargo watch --shell 'just {{ args }}'
build *args:
cargo build --release
# Create a self-signed certificate for testing
# See .env.example for configuring the app to use it
local-cert:
mkdir -p target
mkcert -cert-file target/localhost.crt -key-file target/localhost.key example.com "*.example.com" localhost 127.0.0.1 ::1 $(hostname)
test *args:
cargo test -- -q {{args}}
lint:
cargo clippy --release -- -D warnings
cargo clippy -- -D warnings