Configuring Lua

Discover our Public Cloud offer

Shared Hosting for Everyone, imagined by developers, for developers.

Discovering the Public Cloud

Supported versions

5.3
5.2
5.1

The default version is Lua 5.3. 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.

User Program Site Type
User Program Site Type

You need to specify the command that will start your Lua application, for example:

lua5.1 $HOME/myapp/start-server.lua

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.