generated from DimensionDev/aws_lambda_rust_template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathjustfile
43 lines (35 loc) · 1.04 KB
/
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
# Local Variables:
# mode: justfile
# End:
set dotenv-load
set export
# Start peripherals of this server
peri:
docker-compose up -d tigergraph
# Development environment preparation.
prepare: peri
@rustup override set stable
@if [ ! -f .env ]; then cp .env.example .env; fi
@if [ ! -f config/main.toml ]; then cp config/main.sample.toml config/main.toml; fi
# Run tests
test: peri
env RUST_BACKTRACE=1 RUST_LOG=debug RELATION_SERVER_ENV=testing cargo test -- --nocapture --test-threads=1
# Clean dev environment (incl. build cache and database)
clean:
cargo clean
docker-compose down -v
@local:
docker compose down -v
docker compose up -d
echo 'Waiting for TigerGraph to start...'
sleep 60
env RUST_LOG=trace cargo run --bin standalone
# Get latest schema file.
# npm install -g get-graphql-schema
get-schema:
get-graphql-schema https://api-v2.lens.dev/playground > src/upstream/lensv2/schema.graphql
# Build docker image using nix:
build-docker:
nix build '.#docker'
docker load -i ./result
echo 'Image: nextdotid/relation_server:latest'