summaryrefslogtreecommitdiff
path: root/config/initializers/action_cable.rb
blob: eb44ff00d093bc8a51a2d39624517341ecf5fe63 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

Rails.application.configure do
  # We only mount the ActionCable engine in tests where we run it in-app
  # For other environments, we run it on a standalone Puma server
  config.action_cable.mount_path = Rails.env.test? ? '/-/cable' : nil
  config.action_cable.url = Gitlab::Utils.append_path(Gitlab.config.gitlab.relative_url_root, '/-/cable')
  config.action_cable.worker_pool_size = Gitlab.config.action_cable.worker_pool_size
end