summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorArun Isaac2022-12-24 23:53:09 +0000
committerArun Isaac2022-12-25 23:33:04 +0000
commit3ff858a5fd78ee4b93af129149430bbd1b39a583 (patch)
tree51bdc434fc81e870b71c0091ee6aa2cb1d7a3e02 /bin
parent6858a6b3d1236bbffaf32376699c3e193ffad324 (diff)
downloadtissue-3ff858a5fd78ee4b93af129149430bbd1b39a583.tar.gz
tissue-3ff858a5fd78ee4b93af129149430bbd1b39a583.tar.lz
tissue-3ff858a5fd78ee4b93af129149430bbd1b39a583.zip
web: dev: Accept thunk to read project configuration.
To the development server, pass a thunk to read project configuration instead of the project configuration itself. This allows us to hack on the project's tissue.scm without having to restart the development server to see changes. * bin/tissue (tissue-web-dev): Pass thunk to read project configuration instead of the project configuration itself. * tissue/web/dev.scm (handler, start-dev-web-server): Accept thunk to read project configuration instead of the project configuration itself.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/tissue3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/tissue b/bin/tissue
index 47c9c6f..5be9e7b 100755
--- a/bin/tissue
+++ b/bin/tissue
@@ -310,8 +310,7 @@ Serve website and issues of current repository.
(when (assq-ref args 'listen-repl)
(start-repl (assq-ref args 'listen-repl)))
(start-dev-web-server (assq-ref args 'port)
- %xapian-index
- (load-config))))))
+ %xapian-index load-config)))))
(define (print-usage)
(format #t "Usage: ~a COMMAND [OPTIONS] [ARGS]