From 3bd6da580512ac8a80bf9662a2e69f17c280b2c7 Mon Sep 17 00:00:00 2001 From: Per Stark Date: Mon, 2 Dec 2024 09:18:15 +0100 Subject: [PATCH] bacon: working jobs live watch --- bacon.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bacon.toml b/bacon.toml index f36f83d..4f6308f 100644 --- a/bacon.toml +++ b/bacon.toml @@ -91,11 +91,17 @@ background = true command = ["cargo", "run", "--color", "always", "--bin", "server"] need_stdout = true allow_warnings = true +watch = ["src", "Cargo.toml", "Cargo.lock"] +background = true +on_change_strategy = "kill_then_restart" [jobs.worker] command = ["cargo", "run", "--color", "always", "--bin", "worker"] need_stdout = true allow_warnings = true +watch = ["src", "Cargo.toml", "Cargo.lock"] +background = true +on_change_strategy = "kill_then_restart" # You may define here keybindings that would be specific to # a project, for example a shortcut to launch a specific job.