Skip to content

Commit

Permalink
* updgrade deps (Rails 8, Next 0.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Feb 3, 2025
1 parent efeb4e3 commit 63d24ca
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion .anycable-rails-revision

This file was deleted.

2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ elsif File.file?(File.join(__dir__, ".rails-revision"))
git, branch = *File.read(File.join(__dir__, ".rails-revision")).strip.split("#", 2)
gem "rails", git:, branch:
else
gem "rails", ENV.fetch("RAILS_VERSION", "~> 7.0")
gem "rails", ENV.fetch("RAILS_VERSION", "~> 8.0")
end

# Baseline setup: Puma + Redis pub/sub
Expand Down
2 changes: 1 addition & 1 deletion bento
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ end.parse!

require_relative "lib/application"

desc = defined?(ActionCableNext) ? "Action Cable Next #{ActionCableNext::VERSION} on Rails #{Rails::VERSION::STRING}" : "Action Cable #{Rails::VERSION::STRING}"
desc = defined?(ActionCableNext) ? "Action Cable Next #{ActionCableNext::VERSION} (fastlane broadcasts: #{ActionCable.server.config.fastlane_broadcasts_enabled}) on Rails #{Rails::VERSION::STRING}" : "Action Cable #{Rails::VERSION::STRING}"

$stdout.puts "⚡️ Running #{desc} via #{$benchmark_server}"

Expand Down
4 changes: 4 additions & 0 deletions lib/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ class App < Rails::Application
ActionCable.server.config.disable_request_forgery_protection = true
ActionCable.server.config.logger = Rails.logger

if ENV["FASTLANE"] == "true"
ActionCable.server.config.fastlane_broadcasts_enabled = true
end

# Load server configuration
require_relative "servers/#{$benchmark_server}" if defined?($benchmark_server)

Expand Down

0 comments on commit 63d24ca

Please sign in to comment.