Running several wikis via Tiddlywiki
on Node.js
from a command line can be a kind of pain in the ass. Especially if you run wikis in the background, use many terminals and have forgotten from which one you had run them or which ports you had assigned to them.
TidHub is a simple bash script that greatly simplifies management of wikis on your machine. Instead of remembering or finding paths, pids, ports it introduces concept of wiki keys. These Wiki keys are easy-to-write aliases to wikis on your computer which you define by yourself.
TidHub utilizes wiki keys list that is stored in a very simple config file. The config file template is created (if the user interactively agrees) by the program itself. You only have to edit the template.
Remark: If you are reading this on GitHub, you are looking at the one-way-only mirror of my TidHub local Fossil repository. It's just a way I brought TidHub into FOSS community.
TidHub implements these daily wikis management tasks:
- Starts all|selected wikis in the background while automatically chooses
tcp
port to be listened. - Views all|selected wikis in the default browser as
http://localhost:port
page. - Stops all|selected wikis while automatically finds appropriate
pid
to be killed. - Prints info status of all preconfigured wikis:
key
,path
,pid
,port
in one well-arranged table.
I've decided not to include Tiddlywiki Node.js --init server
command into TidHub, so you have to create directory of server-related components without the Tidhub support. For this see Installing Tiddlywiki on Node.js.
TidHub has also quite detailed documentation about program usage and config file setup.
- Linux Tiddlywiki on Node.js (obviously) and at the least one directory containing Tiddlywiki server-related components
- bash >= 4
- awk, sed, ss|netstat, pgrep, xdg-open|x-wwwbrowser|sensible-browser
- Copy or move
tidhub.sh
into some directory on your PATH. I prefer either~/bin/
or~/.local/bin/
- Make
tidhub.sh
file permission executable (e.g. chmod u+xtidhub.sh
) - Run it: write into your terminal:
tidhub.sh
and you will be presented with program usage options or — if configuration file is missing — with an offer to create config file template.
- Project started on 2020-12-19.
- All intended functionalities has been implemented on 2021-01-03.
- Ver: 1.0.0 released to public on 2021-01-13.
- Ver: 1.0.1 minor improvements on 2021-01-16.
- Ver: 1.0.2 minor improvements on 2021-01-20.
- TiddlyServer is really an excellent option.
Special thanks to
- Node.js Tiddlywiki developers: running several wikis on my desktop is easy as going to the hell (going to the heaven is rather difficult, isn't it?)
- Fossil VCS developers: my projects versions control is a fun childish play.
Copyright 2021 MarHaj at https://github.com/MarHaj/tidhub under GNU General Public Licence version 3 or any later version, see https://www.gnu.org/licenses/gpl-3.0.txt
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.