fix kamal deploy
This commit is contained in:
parent
024bbe2ec7
commit
26ffd27f7d
5 changed files with 17 additions and 1 deletions
4
app/channels/application_cable/channel.rb
Normal file
4
app/channels/application_cable/channel.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
module ApplicationCable
|
||||||
|
class Channel < ActionCable::Channel::Base
|
||||||
|
end
|
||||||
|
end
|
||||||
4
app/channels/application_cable/connection.rb
Normal file
4
app/channels/application_cable/connection.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
module ApplicationCable
|
||||||
|
class Connection < ActionCable::Connection::Base
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -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])
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
3
config/initializers/application_cable.rb
Normal file
3
config/initializers/application_cable.rb
Normal 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
|
||||||
Loading…
Reference in a new issue