You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just installed the anycable-rails gem and I cannot get it working with my current multitenant setup. I am using subdomains, eg. tenant1.localhost:3000
Now, I am seeing a spam in my rails console
Request URL: ws://tenant1.localhost:3000/cable
ActionController::RoutingError (No route matches [GET] "/cable"):
This route should/have existed. How can I setup this gem with subdomains?
## dev config
Rails.application.configure do
config.action_cable.url = ActionCable.server.config.url = ENV.fetch("CABLE_URL", "ws://localhost:8080/cable") if AnyCable::Rails.enabled?
end
## cable.yml
development:
adapter: <%= ENV.fetch("ACTION_CABLE_ADAPTER", "any_cable") %>
## Procfile
anycable: bundle exec anycable
ws: anycable-go --port=8080
## consumer
import { createConsumer } from '@rails/actioncable'
export default createConsumer()
Many thanks
Tell us about your environment
Ruby version: 3.1
Rails version: 6.1
anycable gem version: 1.3
anycable-rails gem version: 1.3.7
grpc gem version: 1.52
The text was updated successfully, but these errors were encountered:
I have just installed the anycable-rails gem and I cannot get it working with my current multitenant setup. I am using subdomains, eg. tenant1.localhost:3000
Now, I am seeing a spam in my rails console
Request URL: ws://tenant1.localhost:3000/cable
ActionController::RoutingError (No route matches [GET] "/cable"):
This route should/have existed. How can I setup this gem with subdomains?
Many thanks
Tell us about your environment
Ruby version: 3.1
Rails version: 6.1
anycable
gem version: 1.3anycable-rails
gem version: 1.3.7grpc
gem version: 1.52The text was updated successfully, but these errors were encountered: