Configuration

Kongo's main configuration file is located at config/application.rb

Kogno::Application.configure do |config|

  config.app_name = "Kogno"

  config.environment = :development

  config.http_port = 3000

  config.available_locales = [:en]
  config.default_locale = :en

  config.routes.default = :main

  config.sequences.time_elapsed_after_last_usage = 900 # 15 minutes

  config.store_log_in_database = false

  config.typed_postbacks = false

  config.error_notifier.slack = {
    enable: false,
    webhook: "<YOUR SLACK WEBHOOOK HERE>"
  }  

end

Field Description

Field
Description

config.app_name

The project's name.

config.environment

Defines the environment: development or production.

In development mode you will see more logs and isn't necessary to restart when the code is modified.

config.http_port

The port where the web server runs.

config.available_locales

The available locales of the project.

config.default_locale

config.routes.default

The general context, which will handle a message when the conversation with a user has no defined context.

config.delayed_actions.time_elapsed_after_last_usage

config.store_log_in_database

If true, it will save incoming messages, events and replies to the kogno_chat_logs database table.

config.typed_postbacks

config.error_notifier.slack

Last updated