lvh.me is a free DNS service that resolves all subdomains (e.g., app.lvh.me, tenant.lvh.me) to 127.0.0.1, eliminating the need to manually edit /etc/hosts when testing subdomain-based Rails apps locally. The guide covers whitelisting lvh.me in Rails 6+ host protection config, accessing subdomains in the browser, reading
•3m read time• From norvilis.com
Table of contents
The /etc/hosts HeadacheWhat is lvh.me?Step 1: The Rails Security BarrierStep 2: Accessing your AppStep 3: Handling Subdomains in CodeStep 4: Session & Cookie SharingBonus: SSL with Puma-devSummarySort: