changeset 54:6bd33547304f

fix for www reindex
author Vadim Filimonov <fffilimonov@yandex.ru>
date Wed, 07 Jul 2021 11:36:27 +0300
parents 56accc959f8c
children 11e847f25845
files conf/Init.luan
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
diff -r 56accc959f8c -r 6bd33547304f conf/Init.luan
--- a/conf/Init.luan	Tue Jul 06 20:19:14 2021 -0600
+++ b/conf/Init.luan	Wed Jul 07 11:36:27 2021 +0300
@@ -53,14 +53,14 @@
 function Init.fix_serve(Serve)
 	if Serve.is_www then
 		Serve.is_forums = false
+		local Server = require "java:global.Server"
+		Server.add("local","jdbc:postgresql://localhost:5432/nabble","administrator","","me.nabble.com");
 	else
 		Serve.www_port = 8081
 		Serve.is_www = true
 	end
 end
 
-local Server = require "java:global.Server"
-Server.add("local","jdbc:postgresql://localhost:5432/nabble","administrator","","me.nabble.com");
 
 function Init.add_filters(context)
 end