fix:web: drop non-working --file-url option for now [#2139]

This commit is contained in:
Simon Michael 2023-12-15 13:57:25 -10:00
parent 13ebf18d24
commit 60f7896dd5
2 changed files with 8 additions and 5 deletions

View File

@ -76,11 +76,12 @@ webflags =
(\s opts -> Right $ setopt "base-url" s opts) (\s opts -> Right $ setopt "base-url" s opts)
"BASEURL" "BASEURL"
"set the base url (default: http://IPADDR:PORT)" "set the base url (default: http://IPADDR:PORT)"
, flagReq -- XXX #2139
["file-url"] -- , flagReq
(\s opts -> Right $ setopt "file-url" s opts) -- ["file-url"]
"FILEURL" -- (\s opts -> Right $ setopt "file-url" s opts)
"set a different base url for static files (default: `BASEURL/static/`)" -- "FILEURL"
-- "set a different base url for static files (default: `BASEURL/static/`)"
, flagNone , flagNone
["test"] ["test"]
(setboolopt "test") (setboolopt "test")

View File

@ -111,6 +111,7 @@ The default is `http://HOST:PORT/` using the server's configured host address an
(or `http://HOST` if PORT is 80). (or `http://HOST` if PORT is 80).
Note this affects url generation but not route parsing. Note this affects url generation but not route parsing.
<!-- #2139
`--file-url=URL` `--file-url=URL`
: set a different base url for static files (default: `BASEURL/static/`) : set a different base url for static files (default: `BASEURL/static/`)
@ -118,6 +119,7 @@ hledger-web normally serves static files itself,
but if you wanted to serve them from another server, but if you wanted to serve them from another server,
eg for better caching or cookie-less serving on high performance websites, eg for better caching or cookie-less serving on high performance websites,
you can customise their urls with this. you can customise their urls with this.
-->
`--test` `--test`
: run hledger-web's tests and exit. hspec test runner args may follow a --, eg: hledger-web --test -- --help : run hledger-web's tests and exit. hspec test runner args may follow a --, eg: hledger-web --test -- --help