# HG changeset patch # User jbe # Date 1503264440 -7200 # Node ID f5d2d0ccb94aef1547fa432066e312ede79f6ca9 # Parent ac5f7a40b8c4a5f9c5a40a681260143d127f96e0 Simplified config file of demo application diff -r ac5f7a40b8c4 -r f5d2d0ccb94a demo-app/config/demo.lua --- a/demo-app/config/demo.lua Sun Aug 20 23:12:16 2017 +0200 +++ b/demo-app/config/demo.lua Sun Aug 20 23:27:20 2017 +0200 @@ -1,9 +1,3 @@ --- uncomment the following two lines to use C implementations of chosen --- functions and to disable garbage collection during the request, to --- increase speed: --- --- require 'webmcp_accelerator' --- collectgarbage("stop") -- open and set default database handle config.db = { @@ -17,23 +11,13 @@ { proto = "interval", delay = 60, handler = function() io.stderr:write("Background job executed here\n") end } } ---[[ --- enable output of SQL commands in trace system -function db:sql_tracer(command) - return function(error_info) - local error_info = error_info or {} - trace.sql{ command = command, error_position = error_info.position } - end -end ---]] - -- 'request.get_relative_baseurl()' should be replaced by the absolute -- base URL of the application, as otherwise HTTP redirects will not be -- standard compliant --request.set_absolute_baseurl(request.get_relative_baseurl()) -- uncomment the following lines, if you want to use a database driven --- tempstore (for flash messages): +-- tempstore instead of a file-based tempstore (for flash messages): -- -- function tempstore.save(blob) -- return Tempstore:create(blob) @@ -42,4 +26,3 @@ -- return Tempstore:data_by_key(key) -- end -