-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
50 lines (40 loc) · 1.17 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
44
45
46
47
48
49
50
set dotenv-filename := "secrets.env"
@clean:
rm -rf generated
@build +args="":
cargo build {{ args }}
@lyre +args="build":
./target/release/lyre {{ args }}
@gen: (lyre "gen")
@dev: (build "-p lyre") lyre
ORPHEUS_OPTIONS="live_reload,no_cache,simulate_lag" cargo run
@watch +recipes="":
cargo watch -cq -- just {{ recipes }} dev
@run:
./target/release/lyre build
echo view at: http://127.0.0.1:8000/
ORPHEUS_OPTIONS="live_reload,no_cache" ./target/release/orpheus
@author:
cargo build -p lyre --release
cargo build --release
cargo watch -w content -cq -- just run
@deploy: lyre
echo "copying files..."
scp -rq ./generated/* $ORPHEUS_HOST:$ORPHEUS_DIR
echo "restarting container"
ssh $ORPHEUS_HOST $ORPHEUS_RESTART
echo "done"
@update:
if [[ `git status --porcelain` ]]; then \
echo "you have local uncomitted changes"; \
exit 1; \
fi
if [[ `git diff origin/main..HEAD` ]]; then \
echo "you have unpushed commits"; \
exit 1; \
fi
echo "updating from git..."
ssh $ORPHEUS_HOST $ORPHEUS_UPDATE
echo "rebuilding..."
ssh $ORPHEUS_HOST $ORPHEUS_BUILD
echo "done"