Artifact 4d577052cf1b6ea26ec3eee07e190752c322ac8157b702930383b362819df5b6:
- Executable file fossilserve — part of check-in [efd4ea0e37] at 2024-07-05 09:01:54 on branch trunk — Replace home dir with env variable. The reason there's two sorts of changes in the org file is because emacs org doesn't understand environment variables, however it does understand what ~ means.Everywhere else gets the generic ${HOME} that will work under Linux and any of the BSD-like systems. I haven't ever tried this under WSL/WSL2, though it should be fine there. I don't care about Windows commandline as I don't use it for updating fossils. (user: viking size: 468)
#!/bin/bash # v0.1 Initial release # we don't exactly need a home, just a straight up fossil invoke # from the / we can invoke a server (in a new tab) for every fossil we have # # TODO: we don't test for already-running fossil. -test is now ancient. # v0.2 Changed default home for tangled script if [[ "$1" == "-test" ]]; then fossil-test server --port 8100 / & else # either there's no $1 or $1 holds something that's not -test fossil server --port 8100 / & fi