I’ve just deployed my first Rails 5 app which had ActionCable built in instead
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
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,
I hope this helps!