tarantool / config

App configuration library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document cfg.dir

rosik opened this issue · comments

What is the dir field in the result of config.parse?

If it is supposed to be a path to the tarantool binary, then it's broken

init.lua:

local cfg = config.parse({
    app_name = "myproject",
    instance_name = os.getenv('INSTANCE_NAME'),
})

Running it

$ which tarantool
/opt/central/build/tarantool
$ /opt/central/build/tarantool ./init.lua 
{"dir":"\/opt\/tarantool-install"}