Using Xavante
Assuming that you have installed Xavante using the default configuration, you can start Xavante using:
xavante_start
If everything is working, this will display a message stating the correct initialization of Xavante and the port being used. The default configuration uses port 8080, so to test if everything is correct just open on you browser the URL below
http://localhost:8080
If your configuration uses a different port number, then you'll have to use the corresponding URL change.
Opening this URL should show the Kepler welcome page. This page displays a welcome message and allows you to check the documentation and some tests.
Configuring Xavante
The configuration file for Xavante is located at <KEPLER_CONF>/xavante/config.lua, the one for CGILua is at <KEPLER_CONF>/cgilua/config.lua and the public web directory is <KEPLER_WEB>.
You can use the Xavante configuration to change your port and how Xavante should handle HTTP requests.
In <KEPLER_WEB> you will find some examples of Lua Pages and Lua Scripts.
index.lp
is the page used as a default when opening the starting
URL as shown above. You can replace this file with your own version of the starting
page. You can also use other files in the <KEPLER_WEB> directory and access
them using the format:
http://localhost:8080/mypage.lp
or
http://localhost:8080/mypage.lua
For more details on how to configure CGILua and use Lua Pages and Lua Scripts please check the CGILua documentation. Note that changes to CGILua configuration can impact other launchers installed, not only Xavante.