diff src/luan/host/Util.luan @ 1627:07be5015159d

better config
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 07 Dec 2021 22:15:16 -0700
parents cf9dfead83a3
children 5c676385284b
line wrap: on
line diff
--- a/src/luan/host/Util.luan	Tue Dec 07 18:30:02 2021 -0700
+++ b/src/luan/host/Util.luan	Tue Dec 07 22:15:16 2021 -0700
@@ -34,8 +34,9 @@
 	file.write_text("return "..stringify{password=password}.."\n")
 end
 
-local Config = require "file:Config.luan"
-local pg_admin = Config.postgres
+require "java"
+local WebHandler = require "java:luan.host.WebHandler"
+local pg_admin = WebHandler.config.postgres
 
 function Util.set_postgres_password(domain,password)
 	if pg_admin == nil then