-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
37 lines (29 loc) · 809 Bytes
/
Makefile
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
run: build deploy
visualize:
cargo run --bin tree-visualizer --no-default-features
build:
cross build \
--package tree-writer \
--release \
--target armv7-unknown-linux-gnueabihf
# strip target/armv7-unknown-linux-gnueabihf/release/rusty-tree
frontend:
(cd tree-frontend \
&& trunk serve \
--proxy-backend=http://localhost:3030/ \
--proxy-rewrite=/api/ \
--public-url=/static/)
backend:
(cd tree-backend \
&& RUST_LOG=debug cargo run)
frontend-release:
(cd tree-frontend \
&& trunk build --release)
setup-web:
rustup target add wasm32-unknown-unknown
cargo install trunk wasm-bindgen-cli
deploy:
du -sk target/armv7-unknown-linux-gnueabihf/release/rusty-tree
scp target/armv7-unknown-linux-gnueabihf/release/rusty-tree tree:~/rusty-tree
move:
scp rusty-tree tree:~/rusty-tree