Skip to content

Commit

Permalink
cmd-line option: don't run sterling if off
Browse files Browse the repository at this point in the history
  • Loading branch information
tnelson committed Feb 27, 2025
1 parent 5618818 commit 85fd498
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion forge/server/forgeserver.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,10 @@
(printf "NO PORTS AVAILABLE. Could not start provider server.~n"))

; Now, serve the static sterling website files (this will be a different server/port).
(unless (or (equal? 'off (get-option curr-state 'run_sterling))
; Switch Sterling off for the "off" string too, because users may neglect the \'
; if providing an override at the command line. This means that one cannot provide
; a script in a file named "off".
(unless (or (member (get-option curr-state 'run_sterling) (list 'off "off" #f))
(empty? useful-run-names))
(serve-sterling-static #:provider-port port))
(when (empty? useful-run-names)
Expand Down

0 comments on commit 85fd498

Please sign in to comment.