redisgem, as well as
hiredis, a native wrapper which is much faster than the Ruby gem alone.
redis-session-storegem into your project, and then in your
production.rbyou can change your session store:
hiredisgem does not support SSL. When you provision multiple Heroku Redis addons at the "Hobby" tier, it will give you a "color URL" and a REDIS_TLS_URL . You need to use the non-TLS one which works just fine without SSL.
hiredissupports SSL, you will need to create your addon instance by specifying that Redis 5 is to be used:
heroku/rubybuildpack is required to successfully deploy a StimulusReflex app on Heroku. However, if you see the error:
(WARNING: Can't locate the stimulus_reflex npm package [...])
<%= action_cable_meta_tag %>to our HEADs.
nginx.confhas the port 443 section set up to receive secure websockets:
default_url_optionsfor each environment
ApplicationController.render()to re-render a partial to replace existing content. It is advisable to give ActionDispatch enough information about your environment that it can pass the right values to any helpers that need to build URL paths based on the current application environment.
gem "anycable-rails", "~> 1.0"to your
rails g anycable:setupafter the gem has been installed.
consumer.jsyour browser doesn't have to re-establish a new websocket connection with the server on every page. Turbolinks allows your connection to be persisted between page loads.
consumer.jsto connect to your application URL. Note that you can connect to secure websockets via SSL by using