File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,23 @@ $ vim -p /config/monitor/.env /config/monitor/monitor.toml
134134$ systemctl restart monitor
135135```
136136
137+ Hacking on the monitor locally
138+ ------------------------------
139+
140+ Easy but slow way:
141+
142+ ```
143+ $ nix develop -c sudo [RUST_BACKTRACE=1] monitor
144+ ```
145+
146+ Harder but faster way:
147+
148+ ```
149+ $ export RUSTFLAGS=-Clink-arg=-fuse-ld=mold
150+ $ cargo build --manifest-path monitor/Cargo.toml
151+ $ sudo [RUST_BACKTRACE=1] IMAGE_DEPS_DIR=$(nix eval --raw .\#image-deps) LIB_MONITOR_DIR=. monitor/target/debug/monitor
152+ ```
153+
137154Windows 10 runner
138155-----------------
139156
File renamed without changes.
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ impl Toml {
230230
231231 #[ cfg( any( test, feature = "test" ) ) ]
232232 fn load_for_tests ( ) -> eyre:: Result < Self > {
233- let result: Toml = toml:: from_str ( include_str ! ( "../../monitor.toml.example" ) ) ?;
233+ let result: Toml = toml:: from_str ( include_str ! ( "../../../ monitor.toml.example" ) ) ?;
234234
235235 result. validate ( )
236236 }
You can’t perform that action at this time.
0 commit comments