Conditional frontend build + add user/group options.

This commit is contained in:
Dominik Pantůček 2025-04-04 10:28:54 +02:00
parent b895558ca8
commit 1b20816e7b
2 changed files with 5 additions and 2 deletions

View file

@ -26,7 +26,7 @@ frontend.o: frontend.import.scm
frontend.import.scm: frontend.scm frontend.import.scm: frontend.scm
.PHONY: frontend.scm .PHONY: frontend.scm
frontend.scm: frontend.scm:
cd ../frontend && npm run build && cd ../backend && csi -b -q ../tools/schemify-tree.scm -- ../frontend/dist frontend frontend-lookup cd ../frontend && (if [ -d src ] ; then npm run build ; fi ) && cd ../backend && csi -b -q ../tools/schemify-tree.scm -- ../frontend/dist frontend frontend-lookup
brminv.o: $(BRMINV_SOURCES) brminv.o: $(BRMINV_SOURCES)

View file

@ -62,7 +62,10 @@
(-certificate- cert)) (-certificate- cert))
(-k (key) "Private key" (-k (key) "Private key"
(-key- key)) (-key- key))
) (-u (user) "User to run as (if started as root)"
(-user- user))
(-g (group) "Group to run as (if started as root)"
(-group- group)))
(define ssl? (and (-certificate-) (-key-) #t)) (define ssl? (and (-certificate-) (-key-) #t))
(define port (or (-port-) (if ssl? 443 80))) (define port (or (-port-) (if ssl? 443 80)))