fix kamal deploy

This commit is contained in:
CroneKorkN 2026-01-19 11:11:33 +01:00
parent 024bbe2ec7
commit 26ffd27f7d
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
5 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,4 @@
module ApplicationCable
class Channel < ActionCable::Channel::Base
end
end

View file

@ -0,0 +1,4 @@
module ApplicationCable
class Connection < ActionCable::Connection::Base
end
end

View file

@ -1,3 +1,5 @@
require_relative "application_cable/channel"
class LogChannel < ApplicationCable::Channel class LogChannel < ApplicationCable::Channel
def subscribed def subscribed
server = Server.find(params[:server_id]) server = Server.find(params[:server_id])

View file

@ -7,7 +7,7 @@ image: l4d_tools
# Deploy to these servers. # Deploy to these servers.
servers: servers:
web: web:
- 192.168.0.1 - 10.0.0.176
# job: # job:
# hosts: # hosts:
# - 192.168.0.1 # - 192.168.0.1
@ -45,6 +45,9 @@ env:
# When you start using multiple servers, you should split out job processing to a dedicated machine. # When you start using multiple servers, you should split out job processing to a dedicated machine.
SOLID_QUEUE_IN_PUMA: true SOLID_QUEUE_IN_PUMA: true
# L4D2 base directory (default: /opt/l4d2)
# L4D2_BASE_PATH: /opt/l4d2
# Set number of processes dedicated to Solid Queue (default: 1) # Set number of processes dedicated to Solid Queue (default: 1)
# JOB_CONCURRENCY: 3 # JOB_CONCURRENCY: 3

View file

@ -0,0 +1,3 @@
# Ensure Action Cable base classes are loaded before channels (production eager load)
require Rails.root.join("app/channels/application_cable/channel").to_s
require Rails.root.join("app/channels/application_cable/connection").to_s