Skip to content

Commit

Permalink
add Makefile for backend watch scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lache-melvin committed Feb 20, 2024
1 parent 592bbf5 commit 5d57a77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ android/app/src/main/jniLibs
android/.idea
/build/*
!/build/.npmkeep

.trigger
10 changes: 10 additions & 0 deletions backend/Makefile.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[tasks.watch_build]
script = "cargo watch -x build -s 'touch .trigger'"

[tasks.trigger_server_start]
# TODO dynamic port?????
script = "systemfd --no-pid -s http::4007 -- cargo watch --no-vcs-ignores -w .trigger -x run"

[tasks.watch]
workspace = false
run_task = { name = ["watch_build", "trigger_server_start"], parallel = true }

0 comments on commit 5d57a77

Please sign in to comment.