Configuring Lua
Supported versions
5.4 |
5.3 |
5.2 |
5.1 |
The default version is Lua 5.4. This is the version that is especially used when you start lua
.
Versions are not necessarily already installed.
Binary to use
To use a different version of Lua than the default one, use lua5.X
.
Environment
Luarocks and LuaJIT are ready installed.
HTTP deployment
To deploy an HTTP application with Lua, create a User program type site in the Web > Sites section.

You need to specify the command that will start your Lua application, for example:
lua5.1 $HOME/myapp/start-server.lua
Warning
Your application must absolutely listen to IP ::
and the port shown in the site configuration in the Command field or use the IP and PORT environment variables.