support for lua ordered arrays in configurations

This commit is contained in:
Unbit
2013-03-28 09:00:10 +01:00
parent 417a26fc64
commit 639c1a508c
5 changed files with 110 additions and 10 deletions
+2
View File
@@ -1,5 +1,7 @@
config = {}
config['immediate-uid'] = 'roberto'
config['immediate-gid'] = 'roberto'
config['http-socket'] = ':9090'
config['env'] = { 'FOO=bar', 'TEST=topogigio' }
config['module'] = 'werkzeug.testapp:test_app'
+8
View File
@@ -0,0 +1,8 @@
config = {}
config[1] = { ['http-socket']=':9090' }
config[2] = { ['env']='FOO=bar' }
config[3] = { ['env']='TEST=topogigio' }
config[4] = { ['module']='werkzeug.testapp:test_app' }
return config