Custom Start Modules

The Start Module is used to configure the application. These could be as exotic as a new application but has been more often just adapting to filesystem conventions.

# start.js

This standard configuration expects to be run from within the .wiki directory. The virtual host mechanism provides the domain within the current working directory.

req.wiki = domain

# unix.js

This is configured for docker deployments where normally global locations are made instance specific as volumes. This version expects an environment variable specifying the path.

req.wiki = `${WIKI_DIR || "/root/.wiki"}/${domain}`