CanineHQ/canine · error

Invalid boot mode: #{config.boot_mode}

Error message

Invalid boot mode: #{config.boot_mode}

What it means

Error "Invalid boot mode: #{config.boot_mode}" thrown in CanineHQ/canine.

Source

Thrown at config/application.rb:14

require_relative "boot"

require "rails/all"

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
BOOT_MODES = %w[local cloud cluster]

module Canine
  class Application < Rails::Application
    config.boot_mode = ENV.fetch("BOOT_MODE", "cloud")
    if !BOOT_MODES.include?(config.boot_mode)
      raise "Invalid boot mode: #{config.boot_mode}"
    end

    config.local_mode = config.boot_mode == "local"
    config.local_mode_passwordless = ENV.fetch("LOCAL_MODE_PASSWORDLESS", "false") == "true"
    config.cloud_mode = config.boot_mode == "cloud"
    config.cluster_mode = config.boot_mode == "cluster"
    config.onboarding_method = ENV.fetch("ONBOARDING_METHOD", "") # normal, portainer
    config.account_sign_in_only = ENV.fetch("ACCOUNT_SIGN_IN_ONLY", "") == "true"
    config.build_configuration_enabled = ENV.fetch("BUILD_CONFIGURATION_ENABLED", "true") != "false"
    config.remap_localhost = ENV.fetch("REMAP_LOCALHOST", "")

    config.assets.css_compressor = nil

    config.active_job.queue_adapter = :good_job
    config.application_name = Rails.application.class.module_parent_name
    # Initialize configuration defaults for originally generated Rails version.
    config.load_defaults 7.2

View on GitHub (pinned to ba4ee3968d)

When it happens

Trigger: Thrown at config/application.rb:14 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of CanineHQ/canine@ba4ee3968d (2026-08-23). Data as JSON: /api/errors/df3c89de23e47b82. Report an issue: GitHub.