comparison conf/Init.luan @ 54:6bd33547304f

fix for www reindex
author Vadim Filimonov <fffilimonov@yandex.ru>
date Wed, 07 Jul 2021 11:36:27 +0300
parents 72765b66e2c3
children 3d7067a23eff
comparison
equal deleted inserted replaced
53:56accc959f8c 54:6bd33547304f
51 -- for serve_nabble.luan 51 -- for serve_nabble.luan
52 52
53 function Init.fix_serve(Serve) 53 function Init.fix_serve(Serve)
54 if Serve.is_www then 54 if Serve.is_www then
55 Serve.is_forums = false 55 Serve.is_forums = false
56 local Server = require "java:global.Server"
57 Server.add("local","jdbc:postgresql://localhost:5432/nabble","administrator","","me.nabble.com");
56 else 58 else
57 Serve.www_port = 8081 59 Serve.www_port = 8081
58 Serve.is_www = true 60 Serve.is_www = true
59 end 61 end
60 end 62 end
61 63
62 local Server = require "java:global.Server"
63 Server.add("local","jdbc:postgresql://localhost:5432/nabble","administrator","","me.nabble.com");
64 64
65 function Init.add_filters(context) 65 function Init.add_filters(context)
66 end 66 end
67 67
68 68