PDA

View Full Version : usage of gir.settings()



mhund
June 14th, 2016, 12:34 PM
Hi team,

I use the LUA stuff too rare. Sorry for that. Can someone help me with the gir.settings() function and how to use it? I simply want to get the webserver port which schould be hidden somwhere behind this function but I don't find the way how to call it.

I also see the http://www.promixis.com/man/g6/index.html?settings.html but it confuses me. There is stated something from the settings object, although gir.settings seems to be a function and there is a hint to the girder.settings() function which I cannot find anyway => got lost

thanks in advance,

Martin

Ron
June 14th, 2016, 01:00 PM
local port = gir.settings().webserver.plainPort
print(port)

mhund
June 14th, 2016, 01:11 PM
Eh - so simple. Thank you very much :-)