NAME

database-bi - start Database::BI, or run one of its commands

SYNOPSIS

database-bi                       # development server, 127.0.0.1:3000
database-bi data/store.db         # the same, and / shows that database
database-bi password              # print a password_hash line for the config
hypnotoad database-bi             # production server, 127.0.0.1:8080
database-bi daemon -l http://127.0.0.1:8080

DESCRIPTION

Starts the Database::BI web application. With no arguments it runs the reloading development server (morbo) on the address in the configuration's listen, by default http://127.0.0.1:3000. With one data file it does the same and the home page opens that file. Any other first argument is a Mojolicious command (daemon, routes, get, ...) or password, which reads a password and prints the password_hash line for database_bi.conf.

Without password_hash the server listens on this machine only: a listen address that is not loopback refuses to start. See Database::BI for the configuration.

EXIT STATUS

0 when a command succeeds; 2 when the arguments name more than one database or a file that cannot be opened, before any server starts.

AUTHOR

Nigel Horne <njh@nigelhorne.com>

LICENCE AND COPYRIGHT

Copyright 2026 Nigel Horne.

Usage is subject to the GPL2 licence terms. If you use it, please let me know.