Checking an application file
$ tt check {INSTANCE | APPLICATION[:APP_INSTANCE]}
tt check
checks the specified Tarantool application or instance for syntax errors.
tt
searches for APP_FILE
inside the instances_enabled
directory
specified in the tt configuration file. APP_FILE
can be:
- the name of an application file without the
.lua
extension. - the name of a directory containing the
init.lua
file. In this case,init.lua
is checked.
Check the syntax of the
app.lua
file from theinstances_enabled
directory:$ tt check app
Check the syntax of the
init.lua
file from theinstance1/
directory insideinstances_enabled
:$ tt check instance1
Check all source files of the application stored in the
app/
directory insideinstances_enabled
in accordance with the instances configuration:$ tt check app
Check the source of the
master
instance of the application stored in theapp/
directory insideinstances_enabled
:$ tt check app:master