-
Notifications
You must be signed in to change notification settings - Fork 41
quickhttpd Users Guide
Lukáš Paukert edited this page Mar 14, 2024
·
4 revisions
[~/proj/_build/quickbox/bin]$ ./quickhttpd -h
quickhttpd [OPTIONS]
OPTIONS:
--abort-on-exception
Abort application on exception
--html-dir 'string' [default(./html)]
directory where HTML pages will be stored
--refresh-time number [default(60000)]
refresh time in msec
--config 'string'
Application config name, it is loaded from {config}[.conf] if file exists in {config-path}, deault value is {app-name}.conf
--config-dir 'string'
Directory where application config fiels are searched, default value: {app-dir-path}.
--classes-like 'string'
SQL LIKE expression to filter classes to show, for ex. --classes-like "H%"
--classes-not-like 'string'
SQL LIKE expression to filter classes not to show, for ex. --not-classes-like "HDR"
-e, --event 'string'
-n, --stage number
If not set, the current stage number is loaded from database.
-h, --help
Print help
--http-port number [default(8888)]
--locale 'string' [default(system)]
Application locale (e.g. cs_CZ for Czech, en_US for English etc.)
-b, --sql-database 'string' [default(quickevent)]
--sql-driver 'string' [default(QPSQL)]
-s, --sql-host 'string' [default(localhost)]
-p, --sql-password 'string'
--sql-port number [default(5432)]
-u, --sql-user 'string' [default(quickevent)]
--lfn, --log-long-file-names
Log long file names
-v, --verbose, --vi, --verbode-insensitive [<pattern>]:[D|I|W|E] set topic or module-name log treshold
Set log treshold for all files or topics starting with pattern to treshold D|I|W|E
Examples:
if -v is not specified, set treshold I for all files and W for all topics
-v set treshold D (Debug) for all files and topics
-v :W set treshold W (Warning) for all files or topics
-v foo,bar set treshold D for all files or topics starting with 'foo' or 'bar' and I for rest of files and W for rest of topics
-v foo:W set treshold W for all files or topics starting with 'foo' or 'bar' and I for rest of files and W for rest of topics
Options can be stored in configuration file quickhttpd.conf
// copy file to directory where quickhttpd is installed
// for possible config values see: quickhttpd --help
{
"event": {
"stage": 1, // if not set, the current stage number is loaded from database
"name": "usti2017"
//"classesLike": "H%", // SQL LIKE expression to filter classes to show
//"classesNotLike": "HDR" // SQL LIKE expression to filter classes not to show
},
"sql": {
"driver": "QSQLITE", // QSQLITE = qbe file; QPSQL = PostgreSQL server
//"host": "10.23.40.177",
//"port": 5432,
"database": "/home/fanda/ob/budislav2015_test.qbe" // put file path here for QSQLITE connection or database name for QPSQL
//"user": "quickevent",
//"password": "quickevent"
},
"application": {
"refreshTime": 10000, // refresh time in msec (default is 60 seconds)
"htmlDir": "/home/fanda/t/html" // directory where HTML pages will be stored
}
}
./quickhttpd -b /home/fanda/t/ob/dob2018final.qbe --sql-driver QSQLITE