I have a working rails 5 app with ActionCable on my localhost, and I'm trying to deploy it to heroku. When accessing the page where the chat room is, I can see in chrome's console:
WebSocket connection to 'wss://full-beyond-9816.herokuapp.com/cable' failed: Error during WebSocket handshake: Unexpected response code: 404
I did setup Redis and the Redis addon on heroku. Here is the production part of my cable.yml file:
production: &production
:url: redis://redistogo:4140ce7f3e7493bd1b12@porgy.redistogo.com:9463/
:host: tarpon.redistogo.com
:port: 10272
:password: 12e348ac10ca002879ce7d85daf0bb0
:inline: true
:timeout: 1
Here is my room.coffee file:
(function() {
this.App || (this.App = {});
App.cable = ActionCable.createConsumer();
}).call(this);
Setting up ActionCable on heroku seems tricky, and every post I've found on the subject is either using Phusion Passenger (I'm using Puma), or with a pretty old version of ActionCable (I'm using the latest beta of Rails 5).
How should I set this up ? Thanks for your time and help