diff --git a/lib/anycable/rails/railtie.rb b/lib/anycable/rails/railtie.rb index 5a4e4d5..08c0dde 100644 --- a/lib/anycable/rails/railtie.rb +++ b/lib/anycable/rails/railtie.rb @@ -70,7 +70,7 @@ class Railtie < ::Rails::Railtie # :nodoc: # Since Rails 6.1 if respond_to?(:server) server do - next unless AnyCable.config.embedded? + next unless AnyCable.config.embedded? && AnyCable::Rails.enabled? require "anycable/cli" AnyCable::CLI.embed!