Skip to content

Commit d3c9641

Browse files
refactor: migrate from makefil to justfile
1 parent 2245f9f commit d3c9641

2 files changed

Lines changed: 23 additions & 28 deletions

File tree

Makefile

Lines changed: 0 additions & 28 deletions
This file was deleted.

justfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
set dotenv-load
2+
3+
default: linux self
4+
5+
linux:
6+
cargo build --release --target=x86_64-unknown-linux-gnu
7+
8+
self:
9+
cargo build --release
10+
11+
alias ar := auto-reload
12+
auto-reload:
13+
fd -t f -e rs -e html | entr -r cargo run
14+
15+
test:
16+
cargo test
17+
18+
clean:
19+
cargo test
20+
21+
deploy:
22+
rsync -avzP target/x86_64-unknown-linux-gnu/release/jonathansm $DEPLOY_SERVER:$DEPLOY_PATH
23+
ssh -t "$DEPLOY_SERVER" "sudo systemctl restart jonathansm"

0 commit comments

Comments
 (0)