I’ve just deployed my first Rails 5 app which had ActionCable built in instead
of Pusher.
I couldn’t find any information about running ActionCable in production with
Puma using Nginx as the web server.
Here’s a few steps in order to get it working:
First you need to add this in your application
layout before the </head>
tag
Next up, in your nginx site config file, copy and update the following:
And lastly, you may need to update your production environment file to change
these 2 options:
For SSL, the ws://
above will need to be changed to wss://
and of course,
http
to https
I hope this helps! :smile: