Search code examples
pythonluigi

Where is the luigi config file?


I have installed luigi by pip command and I would like to change the port for the web UI. I tried to find the config file but I couldn't. Do I need to create one?


Solution

  • You can start luigid with the --port option.

    luigid --port 80
    

    Configuration file locations are:

    • /etc/luigi/luigi.cfg
    • luigi.cfg (or its legacy name client.cfg) in your current working directory
    • LUIGI_CONFIG_PATH environment variable

    in increasing order of preference. You do need to create one. e.g.,

    [core]
    default-scheduler-host=www.example.com
    default-scheduler-port=8088