Hotwire Native for Rails Developers:

@joemasilotti

In Chapter 1, Initiate the Visit Section, it says:

let baseURL = URL(string: “http://localhost:3000”)!

This doesn’t work once you want to test on a physical device. Somewhere (maybe not here), you may want to offer that they need to find the address of their computer’s webserver and enter that (i.e., 192.168.1.123:3000).

I realize this will likely be talked about in Production Deployment but I think people probably want to play on their own device (connected to Dev) for the fun of it.

That’s correct! Thanks for calling it out, @jmann99999.

Chapter 10, Deploy to Physical Devices with TestFlight and Internal Testing, will cover how to set up local and mobile environments to run the app on physical devices.

A little hint: I’ve been using ngrok to tunnel through the internet to my local machine. But I’m also exploring Internet Sharing on macOS to achieve the same, for free.