diff options
author | Arun Isaac | 2022-12-24 23:53:09 +0000 |
---|---|---|
committer | Arun Isaac | 2022-12-25 23:33:04 +0000 |
commit | 3ff858a5fd78ee4b93af129149430bbd1b39a583 (patch) | |
tree | 51bdc434fc81e870b71c0091ee6aa2cb1d7a3e02 /bin | |
parent | 6858a6b3d1236bbffaf32376699c3e193ffad324 (diff) | |
download | tissue-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-x | bin/tissue | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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] |