I’m working with Version B2.0 of the epub. After making the changes in Iteration F4, the app crashes and the console shows errors related to Redis. I dug through the provided sample code and determined the fix was as simple as updating the development section of the config/cable.yml file:
development:
adapter: async
Nowhere in the book did I see anything that mentioned making that change.
That’s peculiar. If you generate a new project, it should look exactly that way. Try the following two commands to see what that file should look like when you first generate your application, and what it should look like at the end of iteration F4:
OK, I’ve verified that brew install redis on MacOS will cause config/cable.yml to use that adapter. And then I verified that all of the code in the book will work with that configuration, whether or not the redis service is started.
Weird… For me, when I have cable.yml set to use the redis adapter, it definitely crashes if I do not have redis running. But if I simply run redis-server alongside the Depot app, everything works. And then as soon as I kill theredis-server process, the Depot app crashes.
I’ve updated the installation section to recommend installing redis and (for MacOS users) running the following command:
brew services start redis
At the end of section F4, I’ve added a recommendation to try redid-cli ping if redis is installed, and noted that redis can be avoided entirely during development by using the async adapter in config/cable.yml.