-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
46 lines (36 loc) · 784 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
# Run lint and test
all: lint test
# Run `cargo build`
build:
cargo build
# Run the webserver with auto reload on file changes
watch:
cargo watch -x run
# Run the server
server:
cargo run
# Run the server in release mode
server_release:
cargo run --release
# Run SQLX migrations
migrate:
sqlx migrate run
# Run all tests
test:
cargo test
# Lint the project with fmt and clippy
lint: fmt clippy
fmt:
cargo fmt --all -- --check
clippy:
cargo clippy -- -D warnings
# Start postgres (with vector support) with dev defaults
postgres:
docker run \
--name similarium_postgres \
-e POSTGRES_PASSWORD=s3cr3t \
-e POSTGRES_USER=similarium \
-e POSTGRES_DB=similarium \
-p 127.0.0.1:5432:5432 \
-d \
tensorchord/pgvecto-rs:pg15-v0.1.13