From acbe862e7212015ac91579bcee09b754f0a848a2 Mon Sep 17 00:00:00 2001 From: Joe Knapper Date: Tue, 30 Jun 2026 16:00:36 +0000 Subject: [PATCH 1/2] Add -E to docs on running server manually on Pi --- apidocs/dev/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apidocs/dev/README.md b/apidocs/dev/README.md index e24986b3..500a67fd 100644 --- a/apidocs/dev/README.md +++ b/apidocs/dev/README.md @@ -67,7 +67,7 @@ You can manage the server with the `ofm` command, using `ofm start`, `ofm stop`, ``` ofm stop cd /var/openflexure -sudo -u openflexure-ws application/openflexure-microscope-server/.venv/bin/openflexure-microscope-server --fallback -c settings/ofm_config.json --host 0.0.0.0 --port 5000 +sudo -E -u openflexure-ws application/openflexure-microscope-server/.venv/bin/openflexure-microscope-server --fallback -c settings/ofm_config.json --host 0.0.0.0 --port 5000 ``` From cacc268b0270a592201545a8ae2d445cc17f6c37 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Tue, 30 Jun 2026 18:05:46 +0000 Subject: [PATCH 2/2] Apply suggestions from code review of branch jaknapper-v3-patch-43034 --- apidocs/dev/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apidocs/dev/README.md b/apidocs/dev/README.md index 500a67fd..0631a044 100644 --- a/apidocs/dev/README.md +++ b/apidocs/dev/README.md @@ -65,9 +65,10 @@ There are two types of server available to run: You can manage the server with the `ofm` command, using `ofm start`, `ofm stop`, and `ofm restart` to do the respective actions. Often, stopping the server and running it manually will make errors easier to spot. To do this, run: ``` +ofm activate ofm stop cd /var/openflexure -sudo -E -u openflexure-ws application/openflexure-microscope-server/.venv/bin/openflexure-microscope-server --fallback -c settings/ofm_config.json --host 0.0.0.0 --port 5000 +sudo -u openflexure-ws env "PATH=$PATH" openflexure-microscope-server --fallback -c settings/ofm_config.json --host 0.0.0.0 --port 5000 ```