diff 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
line wrap: on
line diff
--- 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