webmcp
changeset 508:f5d2d0ccb94a
Simplified config file of demo application
author | jbe |
---|---|
date | Sun Aug 20 23:27:20 2017 +0200 (2017-08-20) |
parents | ac5f7a40b8c4 |
children | 6c819040ef6f |
files | demo-app/config/demo.lua |
line diff
1.1 --- a/demo-app/config/demo.lua Sun Aug 20 23:12:16 2017 +0200 1.2 +++ b/demo-app/config/demo.lua Sun Aug 20 23:27:20 2017 +0200 1.3 @@ -1,9 +1,3 @@ 1.4 --- uncomment the following two lines to use C implementations of chosen 1.5 --- functions and to disable garbage collection during the request, to 1.6 --- increase speed: 1.7 --- 1.8 --- require 'webmcp_accelerator' 1.9 --- collectgarbage("stop") 1.10 1.11 -- open and set default database handle 1.12 config.db = { 1.13 @@ -17,23 +11,13 @@ 1.14 { proto = "interval", delay = 60, handler = function() io.stderr:write("Background job executed here\n") end } 1.15 } 1.16 1.17 ---[[ 1.18 --- enable output of SQL commands in trace system 1.19 -function db:sql_tracer(command) 1.20 - return function(error_info) 1.21 - local error_info = error_info or {} 1.22 - trace.sql{ command = command, error_position = error_info.position } 1.23 - end 1.24 -end 1.25 ---]] 1.26 - 1.27 -- 'request.get_relative_baseurl()' should be replaced by the absolute 1.28 -- base URL of the application, as otherwise HTTP redirects will not be 1.29 -- standard compliant 1.30 --request.set_absolute_baseurl(request.get_relative_baseurl()) 1.31 1.32 -- uncomment the following lines, if you want to use a database driven 1.33 --- tempstore (for flash messages): 1.34 +-- tempstore instead of a file-based tempstore (for flash messages): 1.35 -- 1.36 -- function tempstore.save(blob) 1.37 -- return Tempstore:create(blob) 1.38 @@ -42,4 +26,3 @@ 1.39 -- return Tempstore:data_by_key(key) 1.40 -- end 1.41 1.42 -